Bug 46347 - Endorsed option couldn't be overriden
Summary: Endorsed option couldn't be overriden
Status: RESOLVED DUPLICATE of bug 46232
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 6.0.18
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 01:02 UTC by Mathieu LARCHET
Modified: 2008-12-05 05:37 UTC (History)
0 users



Attachments

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