我已將Grails應用從1.3.6升級到2.1.1。經過一些修復和整理後,運行應用程序的工作(大部分,仍然是一些棄用的問題來處理)。 Grails戰爭也沒有錯誤地建立起來。將應用升級到Grails 2後出現JBoss部署錯誤
當我部署到JBoss的(4.2.2),但是,同樣作爲已經在做的Grails 1.3.6戰爭,我得到這個錯誤:
Caused by: javax.management.ReflectionException: Cannot find setter method setLoader StandardContext[null]
at org.apache.tomcat.util.modeler.ManagedBean.getSetter(ManagedBean.java:560)
at org.apache.tomcat.util.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:407)
at org.jboss.mx.server.RawDynamicInvoker.setAttribute(RawDynamicInvoker.java:70)
at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:212)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
... 112 more
Caused by: java.lang.NoSuchMethodException: org.apache.catalina.core.StandardContext.setLoader(org.apache.catalina.Loader)
at java.lang.Class.getMethod(Class.java:1605)
at org.apache.tomcat.util.modeler.ManagedBean.getSetter(ManagedBean.java:553)
... 118 more
2012-11-08 16:09:51,604 INFO [org.jboss.web.tomcat.service.TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
2012-11-08 16:09:51,664 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
[email protected] { url=file:/usr/local/JBoss/jboss-4.2.2.GA/server/default/deploy/xxxxx-1.0.war }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.management.ReflectionException: Cannot find setter method setLoader StandardContext[null])
state: FAILED
watch: file:/usr/local/JBoss/jboss-4.2.2.GA/server/default/deploy/xxxxx-1.0.war
altDD: null
lastDeployed: 1352390987263
lastModified: 1352390987000
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=xxxxx-1.0.war,id=1556187143
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.ReflectionException: Cannot find setter method setLoader StandardContext[null])
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=xxxxx-1.0.war,id=1556187143
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.management.ReflectionException: Cannot find setter method setLoader StandardContext[null])
所以我想這是一個發生碰撞卡塔利娜在戰爭中的自由階級,還有一個已經在jboss中?由於它在1.3.6時工作正常,它是否被添加到2.1.1 grails tomcat插件中並且是否可以從grails插件中排除子依賴項?
謝謝。