tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Finding out the absolute path to application (appBase)
Date Fri, 02 Oct 2009 15:53:05 GMT
Caldarale, Charles R wrote:
>> From: Igor Mukhin []
>> Subject: Finding out the absolute path to application (appBase)
>> what is the best way two find out the absolute path to directory 
>> where the application is expanded (appBase)?
> There's no guarantee that the application is expanded, or that components of it exist
anywhere in the file system.  (Or even that there is a file system.)


> What is your actual requirement?

If your requirement really is getting the appBase then try;

((Host) standardContextInstance.getParent()).getAppBase()


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message