I was trying to use Eclipse's WTP, which tries to read Tomcat's configuration files in /etc/tomcat, but it wouldn't work because they are set as 400, owned by tomcat:tomcat. In order for this to work, at least /etc/tomcat/[catalina.policy, server.xml, tomcat-users.xml, web.xml] must be set as 440. Of course, the user who is going to be using WTP must belong to the group tomcat. Reproducible: Always Steps to Reproduce: 1. 2. 3.
pena tomcat-5 # ls -al total 9 drwxr-x--- 3 tomcat tomcat 104 Sep 19 22:09 . drwxr-xr-x 75 root root 4968 Sep 22 02:27 .. drwxr-x--- 3 tomcat tomcat 448 Sep 22 02:34 default -rwxr-x--- 1 tomcat tomcat 401 Sep 22 02:27 log4j.properties Already fixed in the latest ebuild it seems. Hopefully we can make it stable enough to replace the current stable ebuild in the near future.