Hi,

I have an .ear project which contains multiple wars, among this i want to
run one war using latest struts2 and others with older version of struts2.
In my .ear/lib/ i have older version which used to run older web apps and
i'm
packaging strust2 latest and its dependency jar in WEB-INF/lib for the one
which i want to run in latest strust2. but its giving the following error.

Caused by: Unable to load bean: type:
class:com.opensymphony.xwork2.ObjectFactory - bean -
jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/tmp/deploy/tmp7510742630477215514struts2-blank-exp.war/WEB-INF/lib/struts2-core-2.3.15.2.jar!/struts-default.xml:29:72
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:239)
at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:100)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:156)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 143 more
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the
name xwork has already been loaded by bean -
jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/deploy/egov.ear/lib/struts2-core-2.1.2.jar!/struts-default.xml:29:72
- bean -
jar:file:/home/srikanth/Servers/jboss-4.2.3.GA-erp/server/default/tmp/deploy/tmp7510742630477215514struts2-blank-exp.war/WEB-INF/lib/struts2-core-2.3.15.2.jar!/struts-default.xml:29:72
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:223)
... 146 more

Is it possible to integrate two different version of strust2 in an ear
deployment?

-- 
Thanks & Regards
Srikanth

Reply via email to