Running two different version of struts2 web app in a EAR
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
Re: Running two different version of struts2 web app in a EAR
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
Re: Running two different version of struts2 web app in a EAR
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.orgwrote: 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
Re: Running two different version of struts2 web app in a EAR
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.orgwrote: 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
Re: Running two different version of struts2 web app in a EAR
Thanks for your suggestions Lukazs... -- Thanks Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Thu, Oct 17, 2013 at 4:36 PM, Lukasz Lenart lukaszlen...@apache.orgwrote: 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
Struts2 Sample App for Validation
Hi All, I am working on plugin to integrate Struts2 with JSR303 bean validation, Plugin is almost finish and currently i am testing it. Though i am trying to cover as many cases as possible but looking out for some help. Do anyone have a sample application with good amount of validation (Struts2 Validator ) use cases covered?. I want to test plugin with those possible cases to see how it behave. If possible, please share that so as i can test plugin thoroughly. though i am asking too much, but i see no harm in asking some favor ;) -- With Regards Umesh Awasthi http://www.travellingrants.com/
[ANN] Struts 2.3.15.3 GA release available - security fix
The Apache Struts group is pleased to announce that Struts 2.3.15.3 is available as a General Availability release.The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. This release includes important security fixes: - S2-018 - Broken Access Control Vulnerability in Apache Struts2 - solved problem with action: prefix broken in 2.3.15.2 All developers are strongly advised to update existing Struts 2 applications to Struts 2.3.15.3 Struts 2.3.15.3 is available in a full distribution, or as separate library, source, example and documentation distributions, from the releases page. * http://struts.apache.org/download.cgi#struts23153 The release is also available from the central Maven repository under Group ID org.apache.struts. The 2.3.x series of the Apache Struts framework has a minimum requirement of the following specification versions: * Java Servlet 2.4 and JavaServer Pages (JSP) 2.0 * Java 2 Standard Platform Edition (J2SE) 5 The release notes are available online at: * http://struts.apache.org/release/2.3.x/docs/version-notes-23153.html Should any issues arise with your use of any version of the Struts framework, please post your comments to the user list, and, if appropriate, file a tracking ticket.appropriate, file a tracking ticket: * https://issues.apache.org/jira/browse/WW - The Apache Struts group. 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