tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46347] New: Endorsed option couldn't be overriden
Date Fri, 05 Dec 2008 09:02:36 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46347

           Summary: Endorsed option couldn't be overriden
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mathieu.larchet@univ-nancy2.fr


The catalina.sh script calls the setclasspath.sh script to define some
environment variables.

Among these variables is the JAVA_ENDORSED_DIRS (line 99):

JAVA_ENDORSED_DIRS="$BASEDIR"/endorsed

There are 2 problems :

- JAVA_ENDORSED_DIRS couldn't be overriden (using -D in the command line)
- In a multi-instance configuration, the default endorsed dir is
CATALINA_HOME/endorsed instead of CATALINA_BASE/endorsed

Here is a proposition to modify setclasspath.sh :

# Set the default -Djava.endorsed.dirs argument
if [ "$JAVA_ENDORSED_DIRS" == "" ]
then
  JAVA_ENDORSED_DIRS="$CATALINA_BASE"/endorsed
fi


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


Mime
View raw message