On Feb 16, 2007 03:18 PM, Markus=?iso-8859-1?q?Sch=F6nhaber?=
<[EMAIL PROTECTED]> wrote:

> 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"/>

Thanks to you both, but I still get the exception.

Firstly I tried changing the directory permissions

chown tomcat4 /etc/tomcat5 --- no luck there
chmod 777 /etc/tomcat5 ---- also not working on restart

I set the directory permissions back and tried to make the resource
readonly but still get the exception. Am I missing something fundamental
here?

t.

Powered by Open-Xchange.com


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to