How to add jars to the classpath of tomcat in JBoss EWS and RHEL
Issue
- A custom script exports the
CLASSPATH
environment variable and executescatalina.sh start
to start the server, but theCLASSPATH
additions are not honored. - CATALINA_BASE/lib is ignored on private tomcat6 instances.
- in a RHEL6 default install of Tomcat6, libraries placed in CATALINA_BASE/lib are being ignored (not loaded). Only libs placed in CATALINA_HOME/lib are being loaded. This is not the expected behavior for Tomcat6.
Environment
- JBoss Enterprise Web Server (EWS) 1.x, 2.x
- Tomcat 5.5
- Tomcat 6.0
- Tomcat 7.0
- Red Hat Enterprise Linux (RHEL) 5.x
- Tomcat 5.5
- Red Hat Enterprise Linux (RHEL) 6.x
- Tomcat 6.0
- Red Hat Enterprise Linux (RHEL) 7.x
- Tomcat 7.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.