tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: deploying a war file and starting the application
Date Fri, 28 Jan 2011 20:59:47 GMT
On 28/01/2011 20:54, Caldarale, Charles R wrote:
>> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com] 
>> Subject: RE: deploying a war file and starting the application
> 
>> I make reference to getRealPath to load a property file.
> 
> It's definitely a bad thing to do.  You should be using ServletContext#getResourceAsStream().


+1. That will also mean you app will work (well, that part of it at
least) as an exploded directory or as a WAR file.

Mark

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


Mime
View raw message