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 tries to put them in glassfish domain lib/ext => "Error : ClassLoader : Can't find javax.servlet.Filter"
So, they are for now in the glassfish "main" lib.. but there are problems too .. at runtime. What is the correct installation scheme for struts.jar with this configuration ? Thx... On Wed, Jun 11, 2008 at 02:31:13PM +0200, Marc Ende wrote: > 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. > > > >My problem is : I've no isolation between the 2 projects at the action > >dispatcher level. > > > >---------------------------- > >Project A WAR struts.xml : > > > ><struts> > ><package name="projectA-support" namespace="/" extends="struts2-default"> > > > > <action name="Index" class="com.web.projectA.Index"> > > <result>/jsp/index.jsp</result> > > </action> > > > ></package> > > > >Project B WAR struts.xml : > > > ><struts> > ><package name="projectB-support" namespace="/" extends="struts2-default"> > > > > <action name="Index" class="com.web.projectB.Index"> > > <result>/jsp/index.jsp</result> > > </action> > > > > <action name="Login" class="com.web.projectB.Login"> > > <result>/jsp/login.jsp</result> > > </action> > > > ></package> > > > >---------------------------- > > > >1- I can call 'http://localhost:8080/ProjectA/Login.action' and this is > >the 'com.web.projectB.Login' class that is executed (even if no Login > >action is specified in Project A) because they share the namespace '/'. > > > >2- If I call 'http://localhost:8080/ProjectA/Index.action', this is the > >'com.web.projectB.Index' class that is executed (last struts.xml to be > >parsed ?) > > > >I've no clues to resolve this problem (the use of different namespaces > >doesn't resolve the problem either) > >Any idea ? > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Hugo de Paix de Coeur [Kabhal] <hugo[AT]kab[NOSPAM]hal.org> Contacts: http://www.kabhal.org/~hugo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]