Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.0.11
-
None
-
None
-
JBoss 4.0.5GA, Struts 2, Unix environment
-
Important
Description
Hi,
We have a deployment of multiple struts 2 applications (in EAR file) in unix environment. The same EAR file which can deoploy in windows environment also unable to deploy in unix environment.
The following errors are shown in the jboss startup log
13:01:59,409 INFO [@] [XmlConfigurationProvider] Parsing configuration file [struts-default.xml]
13:01:59,458 ERROR [@] [[/devtest1/app/useradm]] Exception starting filter struts2
Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/apps/devtest1/appsvr/jboss/jboss-4.0.5/server/default/tmp/deploy/tmp17058H2_webapps.ear-contents/useradm-exp.war/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:30:72
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
........
........
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/apps/devtest1/appsvr/jboss/jboss-4.0.5/server/default/tmp/deploy/tmp17058H2_webapps.ear-contents/tag-exp.war/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:30:72 - bean - jar:file:/apps/devtest1/appsvr/jboss/jboss-4.0.5/server/default/tmp/deploy/tmp17058H2_webapps.ear-contents/useradm-exp.war/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:30:72
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:193)
... 145 more
13:01:59,479 ERROR [@] [StandardContext] Error filterStart
13:01:59,479 ERROR [@] [StandardContext] Context [/devtest1/app/useradm] startup failed due to previous errors
I have the following questions.
1. Why it can deploy in windows but not in unix environment?
2. What I need to do in order to run in unix environment?
3. What is the procedure to run multiple struts 2 applications in unix environment?
Thanks.
with regards,
Rajkumar. J