You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/05/16 19:54:55 UTC

DO NOT REPLY [Bug 51206] New: CATALINA_BASE is not visible to setenv.sh

https://issues.apache.org/bugzilla/show_bug.cgi?id=51206

             Bug #: 51206
           Summary: CATALINA_BASE is not visible to setenv.sh
           Product: Tomcat 6
           Version: 6.0.32
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: fhanik@apache.org
    Classification: Unclassified


If this variable is not visible, it makes the setenv.sh script sort of useless

Index: bin/catalina.sh
===================================================================
--- bin/catalina.sh    (revision 1103812)
+++ bin/catalina.sh    (working copy)
@@ -116,6 +116,9 @@
 # Ensure that any user defined CLASSPATH variables are not used on startup,
 # but allow them to be specified in setenv.sh, in rare case when it is needed.
 CLASSPATH=
+if [ -z "$CATALINA_BASE" ] ; then
+  CATALINA_BASE="$CATALINA_HOME"
+fi

 if [ -r "$CATALINA_BASE"/bin/setenv.sh ]; then
   . "$CATALINA_BASE"/bin/setenv.sh
@@ -163,10 +166,8 @@
   fi
 fi

-if [ -z "$CATALINA_BASE" ] ; then
-  CATALINA_BASE="$CATALINA_HOME"
-fi

+
 # Add tomcat-juli.jar and bootstrap.jar to classpath
 # tomcat-juli.jar can be over-ridden per instance
 if [ ! -z "$CLASSPATH" ] ; then

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51206] CATALINA_BASE is not visible to setenv.sh

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51206

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Mark Thomas <ma...@apache.org> 2011-07-13 15:26:09 UTC ---
This has been fixed in 6.0.x and will be included in 6.0.33 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51206] CATALINA_BASE is not visible to setenv.sh

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51206

--- Comment #3 from Mark Thomas <ma...@apache.org> 2011-06-29 14:23:32 UTC ---
Proposed for 6.0.x

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51206] CATALINA_BASE is not visible to setenv.sh

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51206

--- Comment #1 from Filip Hanik <fh...@apache.org> 2011-05-16 18:13:27 UTC ---
The fix will have to be modified a little bit to avoid calling
CATALINA_HOME/bin/setenv.sh twice

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: DO NOT REPLY [Bug 51206] CATALINA_BASE is not visible to setenv.sh

Posted by Rainer Jung <ra...@kippdata.de>.
On 21.06.2011 09:54, bugzilla@apache.org wrote:
> Rainer implemented this in 7.0.x and it will be included in 7.0.17 onwards.

Sorry, this BZ slipped my attention.

Thanks.

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51206] CATALINA_BASE is not visible to setenv.sh

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51206

--- Comment #2 from Mark Thomas <ma...@apache.org> 2011-06-21 07:54:23 UTC ---
Rainer implemented this in 7.0.x and it will be included in 7.0.17 onwards.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org