Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 357391

Summary: www-servers/tomcat-6 - CLASSPATH from /etc/conf.d/tomcat-6 not used in /etc/init.d/tomcat-6
Product: Gentoo Linux Reporter: Sebastian Schwardt <sebastian.schwardt>
Component: [OLD] ServerAssignee: Java team <java>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diff fixing the bug

Description Sebastian Schwardt 2011-03-04 16:36:43 UTC
The CLASSPATH setting in /etc/conf.d/tomcat-6 is not used in /etc/init.d/tomcat-6. 

Reproducible: Always

Steps to Reproduce:
1. Set CLASSPATH in /etc/conf.d/tomcat-6
2. Start tomcat-6


Actual Results:  
CLASSPATH is not used

Expected Results:  
CLASSPATH to be used

--- /etc/init.d/tomcat-6.orig   2011-03-04 14:59:04.000000000 +0100
+++ /etc/init.d/tomcat-6        2011-03-04 17:29:03.000000000 +0100
@@ -24,8 +24,10 @@
         fi

         # Populate the classpath
-        unset CLASSPATH
-        CLASSPATH="${CATALINA_HOME}/lib:${JAVA_HOME}/lib/tools.jar"
+        # 2011-03 removed unset of CLASSPATH to allow configuration in
+        #         conf.d/tomcat-6
+#       unset CLASSPATH
+        CLASSPATH="${CATALINA_HOME}/lib:${JAVA_HOME}/lib/tools.jar:${CLASSPATH}"
         if [ -n "${JSSE_HOME}" ]; then
                 CLASSPATH="${CLASSPATH}:${JSSE_HOME}/lib/jcert.jar:${JSSE_HOME}/lib/jnet.jar:${JSSE_HOME}/lib/jsse.jar"
         fi
Comment 1 Sebastian Schwardt 2011-03-04 16:38:37 UTC
Created attachment 264735 [details]
diff fixing the bug
Comment 2 William L. Thomson Jr. 2011-03-07 21:04:19 UTC
Nice job searching for open bugs before filing a new one...

*** This bug has been marked as a duplicate of bug 333153 ***