Tom Robinson wrote: > 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 [...] > > > Tomcat always updates tomcat-users.xml during startup, so the > > > directory > > > it's in must be write-enabled for the Tomcat userid. (It actually [...] > 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
Hm, it seems expectable to me that changing the permissions of /etc/tomcat5 won't make any difference, since the Exception says that it's /usr/share/tomcat5/conf/tomcat-users.xml.new which can't be written to. You should try and change the permissions of /usr/share/tomcat5/conf - this is "the directory it's in" Chuck referred to. > I set the directory permissions back and tried to make the resource > readonly but still get the exception. Am I missing something fundamental > here? Guessing[1] from the layout of the UserDatabase Resource in your server.xml, you're propably using Tomcat 5.0.x. AFAIR, the "readonly" parameter was introduced in some version of 5.5.x. Regards mks [1] If you mention the exact version of Tomcat you're having a problem with, it's much easyer for others to provide help and you avoid getting hints which don't apply to the problem because someone like me mis-guessed the version of Tomcat you use. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]