This content has been marked as final. Show 1 reply
let's say I need to deploy two web applications under the same server, and both web apps are created with Struts, so they share a common set of Struts JARs. So, where should I place those JARs? Under %SERVER%/lib? Or under each web app's WEB-INF/lib?
You should place them in each of the web application's lib folder instead of %SERVER%/lib.
To make things more complicated, what if the two web apps use different versions of Struts, one uses 1.3.5, the other 1.2.9?
This wont work if you would place the jars in the %SERVER%/lib. This is exactly one of the reasons why you should place the jars separately in the individual web applications.
or I can directly drop the WAR into the deploy folder?
Yes, you can directly place them in the deploy folder.
You would also be interested in reading these: