我是 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
最佳答案
在 grails 命令行上一一运行提到的 4 个命令 1)refresh-dependencies 2)clean 3)compile 4)run-app
关于grails,应用程序成功运行后出现错误,我的项目上出现红色感叹号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18823536/