Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357391 - www-servers/tomcat-6 - CLASSPATH from /etc/conf.d/tomcat-6 not used in /etc/init.d/tomcat-6
Summary: www-servers/tomcat-6 - CLASSPATH from /etc/conf.d/tomcat-6 not used in /etc/i...
Status: RESOLVED DUPLICATE of bug 333153
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
Depends on:
Reported: 2011-03-04 16:36 UTC by Sebastian Schwardt
Modified: 2011-03-07 21:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

diff fixing the bug (tomcat-6.diff.txt,698 bytes, text/plain)
2011-03-04 16:38 UTC, Sebastian Schwardt

Note You need to log in before you can comment on or make changes to this 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 @@

         # 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
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 ***