Я развертываю два приложения Struts2 в качестве военных файлов на JBOSS4.1 Sp1, я получаю приведенную ниже ошибку для второго приложения, в то время как первое приложение успешно развернуто.это прекрасно работает для Tomcat5.5.Также, если я разверну эти приложения отдельно, это сработает.Я работаю два дня, чтобы решить эту проблему, но без помощи.
14:41:11,062 INFO [TomcatDeployer] deploy, ctxPath=/app1, warUrl=file:/C:/jboss-4.0.1sp1/jboss-4.0.1sp1/server/default/tmp/deploy/tmp17122app1-exp.war/
14:41:14,734 INFO [XmlConfigurationProvider] Parsing configuration file [struts-default.xml]
14:41:14,843 INFO [XmlConfigurationProvider] Parsing configuration file [struts-plugin.xml]
14:41:14,875 INFO [XmlConfigurationProvider] Parsing configuration file [struts.xml]
14:41:14,890 INFO [DefaultConfiguration] Overriding property struts.i18n.reload - old value: false new value: true
14:41:14,890 INFO [DefaultConfiguration] Overriding property struts.configuration.xml.reload - old value: false new value: true
14:41:15,468 INFO [ResponseOverrideFilter] Filter initialized. Response buffering is enabled
Трассировка стека продолжается .....
14:41:25,046 INFO [TomcatDeployer] deploy, ctxPath=/app2, warUrl=file:/C:/jboss-4.0.1sp1/jboss-4.0.1sp1/server/default/tmp/deploy/tmp17123app2-
exp.war/
jdbc:oracle:thin:@10.14.184.119:1531:REPPROD has been created with user repapp
14:41:27,093 INFO [XmlConfigurationProvider] Parsing configuration file [struts-default.xml]
14:41:27,093 ERROR [Engine] StandardContext[/app2]Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/C:/jboss-4.0.1sp1/jboss-4.0.1sp1/server/default/tmp/deploy/tmp17123app2-exp.war/WEB-INF/lib/struts2-cor
e-2.1.6.jar!/struts-default.xml:29:72
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:79)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3698)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4349)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:289)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:92)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:374)
at org.jboss.web.WebModule.startModule(WebModule.java:62)
at org.jboss.web.WebModule.startService(WebModule.java:40)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy28.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:360)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:416)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
at org.jboss.Main.boot(Main.java:162)
at org.jboss.Main$1.run(Main.java:423)
at java.lang.Thread.run(Thread.java:595)
Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/C:/jboss-4.0.1sp1/jboss-4.0.1sp1/server/default/tmp/deploy/
tmp17123app2-exp.war/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 122 more
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/C:/jboss-4.0.1sp1/jboss-4.0.1sp
1/server/default/tmp/deploy/tmp17122cdf-exp.war/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72 - bean - jar:file:/C:/jboss-4.0.1sp1/jboss-4.0.1sp1
/server/default/tmp/deploy/tmp17123app2-exp.war/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:206)
... 125 more
14:41:27,390 INFO [ResponseOverrideFilter] Filter initialized. Response buffering is enabled
14:41:27,390 ERROR [Context] Error filterStart
14:41:27,390 ERROR [Context] Context startup failed due to previous errors
14:41:27,546 ERROR [WebModule] Starting failed jboss.web.deployment:war=
.war, id = -611152262 org.jboss.deployment.DeploymentException: файл URL: / C: /jboss-4.0.1sp1/jboss-4.0.1sp1/server/default/tmp/deploy/tmp17123app2-exp.war/ сбой развертывания на org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal (TomcatDeployer.java:365) при org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy (TomcatDeployer.java:92) в org.jboss.web.AbstractWebDeployer.start (AbstractWebDeployer.java: 374) в org.jboss.web.WebModule.startModule (WebModule.java:62) в org.jboss.web.WebModule.startService (WebModule.java:40) в org.jboss.system.ServiceMBeanSupport.jboS.Java: 272) в org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle (ServiceMBeanSupport.java:222) в sun.reflect.GeneratedMethodAccessor2.invoke (Неизвестный источник) в sun.reflect.DelegatingMethodav) в java.lang.reflect.Method.invoke (Method.java:585) в org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:144) в org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) в org.jboss.mx.server.Invocation.invoke (Invocation.java:72) в org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:249) в org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) в org.jboss.system.ServiceController $ ServiceProxy.invoke (ServiceController.java:891) в $ Proxy0.start (неизвестный источник) в org.jbossontrol.Server.Server.start (ServiceController.java:416) в sun.reflect.GeneratedMethodAccessor9.invoke (неизвестный источник) в sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) в java.lang.redjin.ho: (585) в org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:144) в org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) в org.jboss.mx.server.Invocation.invoke(Invocation.java:72) на org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:249) на org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.jssg.64).mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:177) в $ Proxy28.start (неизвестный источник) в org.jboss.web.AbstractWebContainer.start (AbstractWebContainer.java:360) в org.jboss.deploy.Main(MainDeployer.java:964) в org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:775) в org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:738) в sun.reflect.GeneratedMethohoНеизвестный источник) по адресу sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) по адресу java.lang.reflect.Method.invoke (Method.java:585) по адресу org.jboss.mx.interceptor.ReflectedDispatcher.Java: 144) в org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) в org.jboss.mx.interceptor.AbstractInterceptor.invoke (AbstractInterceptor.java:122) в org.jboss.mx.server.Invocation.invoke (Invocation.java:74) в org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke (ModelMBeanOperationInterceptor.java:131)в org.jboss.mx.server.Invocation.invoke (Invocation.java:74) в org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:249) в org.jboss.mx.server.MBeanServerImp(MBeanServerImpl.java:642) по адресу org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:177) по адресу $ Proxy8.deploy (неизвестный источник) по адресу org.jboss.deployment.scanner.URLDeploymentScanner.de.pngJava: 305) на org.jboss.deployment.scanner.URLDeploymentScanner.scan (URLDeploymentScanner.java:481) на org.jboss.deployment.scanner.AbstractDeploymentScanner $ ScannerThread.doScan (AbstractDeploymentScanner.javag0)..scanner.refle.GeneratedMethodAccessor2.invoke (Неизвестный источник) в sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) в java.lang.reflect.Method.invoke (Method.java:585) в org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:14.ssg) или.mx.server.Invocation.dispatch (Invocation.java:80) в org.jboss.mx.server.Invocation.invoke (Invocation.java:72) в org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java: 249) в org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) в org.jboss.system.ServiceController $ ServiceProxy.invoke (ServiceController.java:891) в $ Proxy0.start (неизвестно)в org.jboss.system.ServiceController.start (ServiceController.java:416) в sun.reflect.GeneratedMethodAccessor9.invoke (Неизвестный источник) в sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAjjavlangmpl)..Method.invoke (Method.java:585) в org.jboss.mx.interceptor.ReflectedDispatcher.invoke (ReflectedDispatcher.java:144) в org.jboss.mx.server.Invocation.dispatch (Вызов.Java: 80) в org.jboss.mx.server.Invocation.invoke (Invocation.java:72) в org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:249) в org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) в org.jboss.mx.util.MBeanProxyExt.invoke (MBeanProxyExt.java:177) в $ Proxy4.start (Неизвестный источник) в org.jboss.eper.SergSARDeployer.java:261) в org.jboss.deployment.MainDeployer.start (MainDeployer.java:964) в org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:775) в org.jboss.deployment.MainD(MainDeployer.java:738) в org.jboss.deployment.MainDeployer.deploy (MainDeployer.java:722) в sun.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод) в sun.reflect.NativeMethodAccessorjj) в sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) в java.lang.reflect.Method.invoke (Method.java:585) в org.jboss.mx.interceptor.ReflectedDispatcher.invoketedDispatcher.java:144) в org.jboss.mx.server.Invocation.dispatch (Invocation.java:80) в org.jboss.mx.interceptor.AbstractInterceptor.invoke (AbstractInterceptor.java:122) в org.jboss.mx.server.Invocation.invoke (Invocation.java:74) в org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke (ModelMBeanOperationInterceptor.java:131) в org.jboss.mx.server.Invocation.invoke: Invocation.74)по адресу org.jboss.mx.server.AbstractMBeanInvoker.invoke (AbstractMBeanInvoker.java:249) по адресу org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:642) по адресу org.jboseB(MBeanProxyExt.java:177) в $ Proxy5.deploy (неизвестный источник) в org.jboss.system.server.ServerImpl.doStart (ServerImpl.java:413) в org.jboss.system.server.ServerImpl.start (ServerImpl.Java: 310) в org.jboss.Main.boot (Main.java:162) в org.jboss.Main $ 1.run (Main.java:423) в java.lang.Thread.run (Thread.java:595)14: 41: 27,765 WARN [ServiceController] Проблема с запуском службы j