tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: how to access tomcat conf dir from my webapp
Date Tue, 25 Jan 2011 15:37:01 GMT
2011/1/25 Stevo Slavić <sslavic@gmail.com>:
> String tomcatHomePath = System.getenv("CATALINA_HOME");

The above works only when starting Tomcat with .sh/.bat files and only
when CATALINA_BASE does not differ from CATALINA_HOME (see
RUNNING.txt).

The correct alternative would be to use  System.getProperty("catalina.base");


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message