Re: Multiple Struts2 WAR in a single EAR

2008-06-12 Thread Hugo de Paix de Coeur
Thanks for your advices... Sure, the first configuration I tried was to put struts jars in each .war/WEB-INF/lib. For those interested, a good link on classloaders : https://glassfish.dev.java.net/nonav/javaee5/docs/DG/beade.html But it doesn't work with Glassfish in this configuration because

Re: Multiple Struts2 WAR in a single EAR

2008-06-11 Thread Marc Ende
In general it isn't a good idea to put those custom libs (like struts.jar, spring.jar) etc. in classloaders of the main appserver. They should be in the applications-classloader so you can avoid classloader-issues like leaks. If you've got the first error it sounds to me that you've got the xwo

Re: Multiple Struts2 WAR in a single EAR

2008-06-11 Thread Hugo de Paix de Coeur
In fact, this was my second question, so I ask it now :) I have had problems with deploying *struts*.jar in this special configuration (2 war in an ear). - I tries to put them in each .war WEB-INF/lib => "Error : xwork...ObjectFactory already loaded in bean projectA" at projectB deployment. - I

Re: Multiple Struts2 WAR in a single EAR

2008-06-11 Thread Marc Ende
Hello, do you deploy the struts.jar in the ear or in the WEB-INF/lib folders of the war-files? if they're in the WEB-INF/lib folders they should be seperate. Marc Hugo de Paix de Coeur schrieb: Hello, I'm currently trying to deploy two Struts2 enabled .war in a single .ear on Glassfish. M

Multiple Struts2 WAR in a single EAR

2008-06-11 Thread Hugo de Paix de Coeur
Hello, I'm currently trying to deploy two Struts2 enabled .war in a single .ear on Glassfish. My problem is : I've no isolation between the 2 projects at the action dispatcher level. Project A WAR struts.xml : /jsp/index.jsp