jQuery in Action, 3rd edition
The moose likes Tomcat and the fly likes accommodating multiple versions of jars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "accommodating multiple versions of jars" Watch "accommodating multiple versions of jars" New topic

accommodating multiple versions of jars

murali talluri

Joined: Apr 15, 2004
Posts: 3
I have 2 web application and they both use different versions of Spring. Unfortunately we don't have all the source for one of the web app. One web app uses Spring 2.0 and we use Spring 3.0 for own own web application. Currently we are keeping Spring jars in each of these web apps under WEB-INF/lib and all things work. We don't want our portlet web apps including Spring jars in each of the web app as it gets bulky. We want to keep all the jars (3.0) in shared lib and let other web app (commercial) use 2.0 jars from its WEB-INF/lib. However, when I used put them in ${catalina.home}/shared/lib/*.jar they are getting picked up by tomcat for commercial web app and the application won't start. How I go about solving this issue?

Any suggestions or pointers are most welcome. FYI, I'm using tomcat 6.0.26 version.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

murali talluri wrote:We want to keep all the jars (3.0) in shared lib ...

You shouldn't. Putting the required jars in each web app's WEB-INF/lib is the correct approach.

Disk space is cheap; so what if it's "bulky"?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: accommodating multiple versions of jars
It's not a secret anymore!