[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Eliminate multiple copies of Struts libraries?

javacodemonkey do-not-reply at jboss.com
Thu Aug 3 13:34:45 EDT 2006


Hi all,

I'm deploying an ear on JBoss-4.0.3SP1 that has 6 wars in it, and each war utilizes the Struts framework. 

With the addition of the Struts libraries in each war, it adds on 2MB, which I'm thinking is making the entire ear way larger than it needs to be.

Does anyone have any suggestions on how to add the Struts servlet globally into Tomcat's conf/web.xml (like the global jsp servlet), and still include specific struts-config.xml's in each war?

I've tried putting one copy of each of the Struts libraries under a "lib" folder at the root of the ear, but I believe the Struts 1.x servlet deploys as a singleton, so after it loads the first war's web.xml, it thinks everything is linked to it, and I get 404's for the other wars.

Any ideas or suggestions would be awesome. Thanks!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962948#3962948

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962948



More information about the jboss-user mailing list