----- Original Message ---- From: George Stoianov Sent: Thursday, May 18, 2006 11:32:26 AM Subject: [SLE] Problem with Tomcat 5.0
Hi guys,
I am having a problem with Tomcat on SuSE 10.0 namely it will not start:
WARNING: Unexpected exception resolving reference java.io.FileNotFoundException: /usr/share/tomcat5/conf/tomcat-users.xml.new (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) [snip]
I have not made any changes to that file and the permissions on the file which the error is complaining about are set to:
ls -l /srv/www/tomcat5/base/conf/ total 96 drwxr-xr-x 3 root root 4096 2006-05-08 19:33 Catalina -rw-r--r-- 1 tomcat tomcat 6954 2005-09-12 22:20 catalina.policy -rw-r--r-- 1 tomcat tomcat 2754 2005-09-12 22:20 catalina.properties -rw-r--r-- 1 tomcat tomcat 778 2005-09-12 22:20 jk2.properties -rw-r--r-- 1 tomcat tomcat 1128 2005-09-12 22:20 server-minimal.xml -rw-r--r-- 1 tomcat tomcat 21367 2006-03-03 09:03 server.xml -rw-r--r-- 1 tomcat tomcat 2254 2006-02-13 15:20 server.xml.new -rw-r--r-- 1 tomcat tomcat 432 2006-05-10 08:48 tomcat-users.xml -rw-r--r-- 1 tomcat tomcat 38929 2005-09-12 22:20 web.xml
the conf is a symlink with the following permissions:
ls -l /srv/www/tomcat5/base/conf lrwxrwxrwx 1 root root 17 2005-11-08 10:12 /srv/www/tomcat5/base/conf -> /etc/tomcat5/base [snip] I have 2 servers that have the same problem, is anyone else experiencing this??? It used to work maybe a few days ago and I have made some updates since then now it does not.
It seems like tomcat tries to create a new or rename an existing file in your /usr/share/tomcat5/conf directory and according to your ls output only root has access to that folder. So, if you do not run tomcat as root, you user does not have a permission to write there. Hope it helps, Dmitry
Thanks. George