You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Darrell Esau <da...@gmail.com> on 2008/06/05 07:24:11 UTC

Obtaining the app server install path from the running servlet

Hi all,

I'm not sure if this is possible, and I realize it'll be container
specific, but I'm wondering if it's possible to find the app server's
install path from the servlet code.  (I'm not looking for the webapp
path, as easily obtained from ServletContext's getRealPath() method)
-- I want to know where tomcat is installed on the file system (so I
can look at log files).

I need to do this for tomcat and JBoss -- but I suppose I'll need to
ask over at JBoss for the later.

Thanks for any help you can give.

-darrell

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


RE: Obtaining the app server install path from the running servlet

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Darrell Esau [mailto:darrell.esau@gmail.com]
> Subject: Obtaining the app server install path from the
> running servlet
>
> I'm not sure if this is possible, and I realize it'll be container
> specific, but I'm wondering if it's possible to find the app server's
> install path from the servlet code.

The installation path is set in the catalina.base and catalina.home system properties.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

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