How to add jars to the shared classloader on Tomcat 6 on RHEL 5?

Solution Unverified - Updated -


  • Tomcat 6
  • JBoss Enterprise Web Server (EWS) 1.0.x
  • Red Hat Enterprise Linux (RHEL) 5


  • I need to install a jar file server wide so that it is available to all applications on Tomcat 6. How can I do that?


If you open up /etc/tomcat6/, you can set the "shared.loader=" line to point to jar files to add to the shared class loader.
For example you can create a "/var/lib/tomcat6/shared" directory and put jar files in that, then use "shared.loader=/var/lib/tomcat6/shared/*" in the catalina properties file.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.