When starting /etc/init.d/tomcat5 I get the following error in catalina_log: javax.naming.NamingException: IOException writing to /opt/tomcat5/conf/tomcat-users.xml.new The init script did not complain, but navigating to localhost:8080 just produces an endless loop. I first thought it was a problem with permissions, but the permissions are correct (user tomcat:tomcat, write permission for tomcat set on directories and files). It then turned out to be a symlink problem with the JVM. Original content of /opt/tomcat5: drwxr-xr-x 2 tomcat tomcat 1024 12. Apr 10:41 bin drwxr-xr-x 5 tomcat tomcat 1024 12. Apr 10:41 common lrwxrwxrwx 1 tomcat tomcat 13 12. Apr 11:57 conf -> /etc/tomcat5/ lrwxrwxrwx 1 tomcat tomcat 16 12. Apr 10:41 logs -> /var/log/tomcat5 drwxr-xr-x 5 tomcat tomcat 1024 12. Apr 10:41 server drwxr-xr-x 4 tomcat tomcat 1024 12. Apr 10:41 shared drwxr-x--- 2 tomcat tomcat 1024 12. Apr 10:41 temp drwxr-xr-x 5 tomcat tomcat 1024 12. Apr 10:41 webapps drwxr-x--- 3 tomcat tomcat 1024 12. Apr 11:34 work I then replaced the link with the contents from /etc/tomcat5, restarted the server, and all went well (localhost:8080 shows the content of tomcat). Reproducible: Always Steps to Reproduce: 1. 2. 3.
Sorry, didn't say what I replaced: I replaced the symlink "conf" with a directory "conf" and placed the contents of /etc/tomcat5 in that directory
please use the >=5.0.28 version, this is the direction into the tomcat ebuild is going. the old one with the old layout will disappear soon