Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is common and shared directory in tomcat folder , when use each of them

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
What is different between tomcat_home\shared\lib and tomcat_home\common\lib
what is use of these folders ?

for what purpose we use them ?


Thank you in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jar files placed in shared/lib will be placed into the classpath of all web applications. Jar files in common/lib will also be shared among the web apps and with Tomcat itself.

I put all shared jars in shared/lib except for JDBC drivers which, since I use container-managed connection pooling, must also be available to Tomcat and are therefore placed in common/lib.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic