File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
Similar Threads
ClassNotFoundException
Regarding c:forEach jstl tag.
Tricky class loading error
Best practices for storing servlet library code
Having a problem connecting to Oracle using JDBC type 2 OCI driver