我有一个不需要数据库的Grails应用程序(它是REST客户端)。当我使用grails run-app
运行它时,一切都按计划进行。但是,当我在Tomcat中以 war 方式运行它时,会收到以下消息:
Class: java.lang.ArrayIndexOutOfBoundsException
Message: 1
Trace: Line | Method
->> 1142 | runWorker in java.util.concurrent.ThreadPoolExecutor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 617 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run . . . in java.lang.Thread
Caused by GroovyPagesException: Error processing GroovyPageView: 1
->> 38 | runWorker in /index.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by ArrayIndexOutOfBoundsException: 1
->> 64 | doCall in gsp_coreQueriesindex_gsp$_run_closure2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 88 | run in gsp_coreQueriesindex_gsp
| 1142 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 617 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run . . . in java.lang.Thread
我不知道该集中在哪里。我使用Maven和Ivy没有任何结果。
最佳答案
非常感谢您的支持。我用一个简单的页面替换了index.gsp页面,一切正常。
关于grails - 运行应用程序与 war 执行之间的不一致,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29108206/