Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: MemoryRealm problems!

Omar Adobati

2006-12-05

Replies:

On 12/5/06, Caldarale, Charles R <Chuck.Caldarale@(protected):
> > From: Omar Adobati [mailto:omar.adobati@(protected)]
> > 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.)

I'm using Tomocat 5.5 (I'm sorry to forget about this). And, NO, the
$(catalina.home)/conf/[engine]/[host]/Apps.xml file don't exists...
I still forget to tell that I have done NO changes in any other tomcat
configuration file.

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

You right, I know... I just try to configure it there to test the
path... but it seems to don't work.

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.