1
我有使用常規DSL和「插件-配置」中定義了一些彈簧豆。在classpath上還有一些庫,它們使用常規的spring xml contex。Grails的應用程序加載失敗在Tomcat
所以我把給resources.groovy:
beans = {
importBeans("classpath*:applicationContext.xml")
}
當我使用「Grails的運行程序」命令,它的工作原理運行的應用程序。但是,當我在戰爭部署到Tomcat 7那麼它失敗(點https://github.com/daniel-lima/grails-plugin-config-plugin/blob/master/src/java/org/grails/plugin/config/AbstractConfigHelper.java - 行340):
org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is java.lang.IllegalArgumentException: [Assertion failed]
- this expression must be true
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.initWebApplicationContext(GrailsContextLoader.java:118)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1654)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this expression must be true
有人嗎?
是不是[在GitHub的項目相關的問題(https://github.com/daniel-lima/grails-plugin-config-plugin/pull/1)? –
嗯,這取決於。在grails中配置可能有問題 – Vitek