Bug 46347

Summary: Endorsed option couldn't be overriden
Product: Tomcat 6 Reporter: Mathieu LARCHET <mathieu.larchet>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 6.0.18   
Target Milestone: default   
Hardware: PC   
OS: Linux   

Description Mathieu LARCHET 2008-12-05 01:02:35 UTC
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
Comment 1 Mark Thomas 2008-12-05 05:37:11 UTC

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