I would rather put all the dependencies - it's safer 2013/10/17 Sreekanth S. Nair <sreekanth.n...@egovernments.org>: > hmmm, thanks lukazs. If we want to package jars inside WEB-INF/lib/ which r > the jars needs to be in WEB-INF/lib to resolve this conflict? only struts2 > libs or all dependencies as well? > > -- > Thanks & Regards > Srikanth > Software Developer > -------------------------------- > eGovernments Foundations > www.egovernments.org > Mob : 9980078913 > -------------------------------- > > > On Thu, Oct 17, 2013 at 3:46 PM, Lukasz Lenart <lukaszlen...@apache.org>wrote: > >> 2013/10/17 Sreekanth S. Nair <sreekanth.n...@egovernments.org>: >> > 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? >> >> It should be possible, each must have its own set of jars in >> WEB-INF/lib - you cannot have shared jars in EAR >> >> >> Regards >> -- >> Ćukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >>
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org