2

in tomcat 5 we used to place the commonly used jar in {HOME}/common/lib folder but in tomcat 6.0 the common folder has been removed. can somebody please tell me where to place the jars which will be loaded while sever started and which can be accessible by all apps deployed in server.

I have even created the {HOME}/common/lib folder and tried but it did not work. Also I tried placing the jars in {HOME}/lib but this also did not work.

AstroCB
  • 12,337
  • 20
  • 57
  • 73
dku.rajkumar
  • 18,414
  • 7
  • 41
  • 58

2 Answers2

3

In Tomcat 6 & higher, global libraries are place inside TOMCAT_HOME/lib folder. The common/lib was removed and lib was used instead.

Buhake Sindi
  • 87,898
  • 29
  • 167
  • 228
1

Check here the apache documentation for Class Loader

GustyWind
  • 3,026
  • 3
  • 41
  • 50
  • check this one as well http://wiki.apache.org/tomcat/HowTo#How_do_I_add_JARs_or_classes_to_the_common_classloader_without_adding_them_to_.24CATALINA_HOME.2BAC8-lib.3F – GustyWind Nov 23 '11 at 06:45