Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

loading JAR

 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic