Multiple Tomcat Lib Directories in
  Tomcat 5.5.x – Purpose and
           differences

                Vijay Prasad Gupta...
Multiple lib directories under
             Tomcat…why?
• <Catalina_Home>/server/lib




• <Catalina_Home>/common/lib




...
<Catalina_Home>/server/lib
• Contains jar files to be used
  by tomcat container.
  Includes all classes and
  resources r...
<Catalina_Home>/common/lib
• Contains jar files to be used
  by both the tomcat container
  as well as all deployed web
  ...
<Catalina_Home>/shared/lib
• Contains jar files to be used
  by all deployed web
  applications only

• These classes and ...
Summary
        Folder Path           Visible to tomcat         Visible to web    Class Loader Name
                      ...
References

• http://tomcat.apache.org/tomcat-5.5-
  doc/class-loader-howto.html

• http://javahowto.blogspot.com/2007/01
...
Thank You !!

• Any Questions ?
Upcoming SlideShare
Loading in …5
×

Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differences

2,495 views
2,377 views

Published on

Why do we have multiple lib directories under tomcat 5.5.x? This presentation tries to answer the same.

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,495
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differences

  1. 1. Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differences Vijay Prasad Gupta ECM & Web Architect http://www.linkedin.com/in/vpgupta/ http://ecmwebandmore.blogspot.com/
  2. 2. Multiple lib directories under Tomcat…why? • <Catalina_Home>/server/lib • <Catalina_Home>/common/lib • <Catalina_Home>/shared/lib
  3. 3. <Catalina_Home>/server/lib • Contains jar files to be used by tomcat container. Includes all classes and resources required to implement Tomcat 5.5.x itself • These classes and resources are totally invisible to web applications • The Catalina class loader makes these classes and resources visible to tomcat containers
  4. 4. <Catalina_Home>/common/lib • Contains jar files to be used by both the tomcat container as well as all deployed web applications • These classes and resources are visible to both container and all web applications • The Common class loader makes these classes and resources visible to both container as well as web- applications
  5. 5. <Catalina_Home>/shared/lib • Contains jar files to be used by all deployed web applications only • These classes and resources are totally invisible to tomcat container • The Shared class loader makes these classes and resources visible to all deployed web applications
  6. 6. Summary Folder Path Visible to tomcat Visible to web Class Loader Name container applications <Catalina_Home>/server/lib Yes No Catalina <Catalina_Home>/common/lib Yes Yes Common <Catalina_Home>/shared/lib No Yes Shared
  7. 7. References • http://tomcat.apache.org/tomcat-5.5- doc/class-loader-howto.html • http://javahowto.blogspot.com/2007/01 /tomcat-commonlib-vs-sharedlib.html
  8. 8. Thank You !! • Any Questions ?

×