tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: deploying a war file and starting the application
Date Fri, 28 Jan 2011 20:36:25 GMT
> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com] 
> Subject: RE: deploying a war file and starting the application

> the initservlet is just a means to initialize the application.

Which, as Chris S noted earlier, should be done by a ServletContextListener, not a servlet.

> The writing of a log file is not to a directory within tomcat.

That's good.  Why do you have a reference to ServletContext#getRealPath()?  That's very, very
risky.

 - 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.

Mime
View raw message