grails,应用程序运行成功后出错,我项目上的红色感叹号?

时间:2013-09-16 08:29:22

标签: grails

我是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

2 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:0)

只需删除view.gsp中的<g:script/><script/>类型标记,一切顺利, 我最近自己解决了这类问题。