This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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?
It's not a secret anymore!