Caldarale, Charles R wrote:
> > From: Tom Robinson [mailto:[EMAIL PROTECTED]
> > Subject: IOException writing to
> > /usr/share/tomcat5/conf/tomcat-users.xml.new
> >
> > Bizaarly tomcat wants a file called tomcat-users.xml.new
> > when I use tomcat-users.xml? What is that about?
>
> Tomcat always updates tomcat-users.xml during startup, so the directory
> it's in must be write-enabled for the Tomcat userid. (It actually
> writes the .new file, then renames that to remove the .new extension.)
One can tell Tomcat to not touch the tomcat-users.xml by setting
the "readonly"-attribute of the UserDatabase Resource to "true", i. e. like
that:
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"
readonly="true"/>
Regards
mks
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]