You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Pantvaidya, Vishwajit" <vp...@selectica.com> on 2009/05/21 01:13:51 UTC

Pointing java.endorsed.dirs to a different location when running tomcat

I am running a webapp under tomcat 5.5 with the server.xml having a Host element as:

<Host name="localhost" appBase="C:/myapphome " debug="0">

The webapp needs to set the system property java.endorsed.dirs to a location like C:\myapphome\lib\endorsed.
But the setclasspath.bat that comes bundled with tomcat sets this property to <CATALINA_HOME>\common\endorsed. It does not even check if the property is already set - so calling tomcat script from a wrapper script which sets this property will not work.

Any options/recommendations to resolve this issue?