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: MemoryRealm problems!
Date Tue, 05 Dec 2006 16:30:07 GMT
> From: Omar Adobati [mailto:omar.adobati@gmail.com] 
> Subject: MemoryRealm problems!
> 
> I put it into the $MY_APP/META-INF directory, but it seems to 
> be ignored.

Does the file $(catalina.home)/conf/[engine]/[host]/Apps.xml exist?  If
so, it will override the $MY_APP/META-INF/context.xml file.  (That's
assuming you're on 5.5 - you didn't bother to tell us what level of
Tomcat you're using.)

> <Context>
> <Realm className="org.apache.catalina.realm.MemoryRealm"
>        pathName="${catalina.home}/webapps/Apps/WEB-INF/ML-users.xml"
> />
> 
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> prefix="${catalina.home}/webapps/Apps/WEB-INF/logs/ML_access_log."
> suffix=".txt"  pattern="common"
> />
> </Context>

The intent of the servlet spec is to have webapps be read-only, so
writing a log to a file within the deployed webapp is a somewhat
questionable practice.

 - 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


Mime
View raw message