我已经有一个适用于2.0.1的现有Grails项目。
我希望升级到Grag 2.2.4附带的GGTS 3.4.0.M1。已导入我现有的项目,它确定了grails版本的差异,我选择将此项目升级到2.2.4已完成确定。
每当我运行项目(run-app或test-app进行集成测试)时,它都会因下面的堆栈而失败。我已经阅读了Grails文档,特别是“从以前版本升级”,并且相信我已经涵盖了我需要的所有内容。但是我在这里问题是什么问题。
有什么建议吗?
| Loading Grails 2.2.4
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application....
| Compiling 1 source files..
| Compiling 1 source files.....
| Running Grails application
Loading default beans for environment=DEVELOPMENT
Configuring Spring Security Core ...
... finished configuring Spring Security Core
| Error 2013-10-09 17:53:22,446 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'grails.plugin.transaction.handling.TransactionHandlingPostProcessor': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this expression must be true
Message: Error creating bean with name 'grails.plugin.transaction.handling.TransactionHandlingPostProcessor': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: [Assertion failed] - this expression must be true
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
Caused by IllegalArgumentException: [Assertion failed] - this expression must be true
->> 340 | newInstance in org.grails.plugin.config.AbstractConfigHelper$ConfigObjectProxy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 111 | doCall in org.grails.plugin.config.DefaultConfigHelper$_enhanceConfigObjectClass_closure3
| 1 | run . . in Script1
| 160 | afterPropertiesSet in grails.plugin.transaction.handling.TransactionHandlingPostProcessor
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
答案 0 :(得分:0)
在我的初始搜索grails-app-fails-to-load-on-tomcat中没有遇到过这个问题,但是将plugin-config从0.1.5升级到0.1.8就可以了(修改后的BuildConfig.groovy)。