Created attachment 22887 [details] Patch to setclasspath.sh to not set JAVA_ENDORSED_DIRS if already defined I can't override the XML parser implementation by setting the java.endorsed.dirs system property when using start.sh which calls catalina.sh. catalina.sh calls setclasspath.sh which sets this system property to point to "$BASEDIR"/endorsed via the JAVA_ENDORSED_DIRS environment variable and BASEDIR is set to CATALINA_HOME in catalina.sh. I was able to override the XML parser implementation by modifying setclasspath.sh to not set JAVA_ENDORSED_DIRS if it is already defined.
*** Bug 46347 has been marked as a duplicate of this bug. ***
This has been fixed in trunk and proposed for 6.0.x. I modified the proposed patch to cover the .bat file and to use the same method as elsewhere in the .sh scripts to test for an environment variable.
This has been fixed in 6.0.x and will be included in 6.0.19 onwards.