This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Tomcat and the fly likes loading JAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "loading JAR" Watch "loading JAR" New topic
Author

loading JAR

Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
Hi, I have a question regarding Tomcat and how it loads jars on startup.
I understand that if I place a jar in common/lib, those classes will be available to all applications.

However if I place a jar under a specific application's WEB-INF/lib folder, those classes will only be available to that specific application.

What if I have the scenario where all applications are using a jar with version 1.1.2 (this jar is in common/lib), and I install a new application that has a different version of that same jar (this jar is in WEB-INF/lib)?

Is it ok to have multiple versions of that jar loaded in the classpath? Wouldn't there be duplicate packages loaded in the classpath that could cause conflicts?

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loading JAR