You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jack Maus <ja...@airmail.net> on 2002/09/11 21:05:49 UTC
Help finding installation path programmatically
Howdy,
Anyone know a way to get the tomcat installation path from inside a servlet?
I'm using a URLClassLoader to partition the namespace, and "file:
/usr/local/tomcat/webapps/app/app.jar" is way more efficient than
"http:/localhost:8080/app/app.jar"
Since getenv() is deprecated, I can't just go after CATALINA_HOME.
The only method I can come up with is to grab the url for a known library
from the parent classloader and manipulate the string into what I need, but
it feels pretty kludgy.
Thanks,
Jack
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>