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
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
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
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
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
5 matches
Mail list logo