2 Replies Latest reply on Aug 3, 2006 1:53 PM by James M.

    Eliminate multiple copies of Struts libraries?

    James M. Newbie

      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!