2

我是 grails 新手,运行 grails 应用程序时遇到问题。控制台显示如下所示的错误。尽管它在我的应用程序中运行良好,但每次运行应用程序时都会看到错误让我很紧张。而且我的项目上还有红色感叹号,是什么?

谁能告诉我如何解决它?

 Error 2013-09-16 11:13:40,270 [http-bio-8333-exec-2] ERROR [/hubbub].[gsp]  - Servlet.service() for servlet [gsp] in context with path [/hubbub] threw exception
Message: It looks like you are missing some calls to the r:layoutResources tag. After rendering your page the following have not been rendered: [defer]
   Line | Method
->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   908 | run     in     ''
^   662 | run . . in java.lang.Thread

| Error 2013-09-16 11:13:49,467 [http-bio-8333-exec-8] ERROR [/hubbub].[default]  - Servlet.service() for servlet [default] in context with path [/hubbub] threw exception
Message: It looks like you are missing some calls to the r:layoutResources tag. After rendering your page the following have not been rendered: [defer]
   Line | Method
->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   908 | run     in     ''
^   662 | run . . in java.lang.Thread

Hibernate: select this_.id as id2_0_, this_.version as version2_0_, this_.date_created as date3_2_0_, this_.password as password2_0_, this_.profile_id as profile5_2_0_, this_.user_id as user6_2_0_ from user this_ limit ?
Hibernate: select count(*) as y0_ from user this_
| Error 2013-09-16 11:13:59,475 [http-bio-8333-exec-9] ERROR [/hubbub].[default]  - Servlet.service() for servlet [default] in context with path [/hubbub] threw exception
Message: It looks like you are missing some calls to the r:layoutResources tag. After rendering your page the following have not been rendered: [defer]
   Line | Method
->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   908 | run     in     ''
^   662 | run . . in java.lang.Thread
4

2 回答 2

2

在你的 grails 命令行上一一运行提到的 4 个命令 1)refresh-dependencies 2)clean 3)compile 4)run-app

于 2013-09-16T09:20:03.307 回答
0

只需删除view.gsp中的<g:script/>to type 标签,一切都很好,我最近自己修复了这类问题。<script/>

于 2014-04-13T09:29:03.587 回答