File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Where to place Struts jars in Tomcat 5.5? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Where to place Struts jars in Tomcat 5.5?" Watch "Where to place Struts jars in Tomcat 5.5?" New topic

Where to place Struts jars in Tomcat 5.5?

Priya Bindra
Ranch Hand

Joined: Sep 22, 2009
Posts: 51
We all know that whenever we store the struts jars in WEB-INF/lib folder of the webapp, and we need to redeploy the app, we must shut down tomcat.

Also, i feel it is a bad design practise to store struts jars within each webapp, when tomcat can host multiple struts webapps.

So i placed the struts jars in tomcat's common/lib folder and it works well. Although, i tried to place the struts jars inside another folder i.e. common/lib/struts-lib, but the container couldnt read jars from there.

Please let me know if this is the standard industry practise?
David Newton

Joined: Sep 29, 2008
Posts: 12617

Normal practice is to put Struts jars in each webapp. This is particularly important as you may need to deploy multiple versions of Struts at once, plus Struts (Struts 1) is relatively old and simply may not work in a shared environment.
I agree. Here's the link:
subject: Where to place Struts jars in Tomcat 5.5?