After I emerge tomcat I try to start tomcat with the line > /etc/init.d/tomcat start like in the documentation. And I get the error permission denied. The permission for the file /etc/conf.d/tomcat was -rwxr-x--- and I changed the permission to -rwxr-xr-- After that every thing was fine. An other little bug: After emerge I had to restart my computer, because the env CATALINA_HOME was missing. Reproducible: Always Steps to Reproduce: 1. 2. 3.
the reason for this bug is line 63 in the file /opt/tomcat/bin/catalina.sh line source /etc/conf.d/tomcat I think this script try to read the file, but read permit is only for root.
Created attachment 16539 [details, diff] diff -u tomcat-4.1.24-r1.ebuild The ebuild doesn't set the permissions right on install. This patch should fix the ebuild.
How do I get the new ebuild? with emerge sync?
No, since it has not yet changed in the cvs. For fix a installed version of tomcat just do the following commands: chmod 755 /etc/init.d/tomcat chmod 644 /etc/conf.d/tomcat /etc/env.d/21tomcat Or patch the ebuild file by hand: cd /usr/portage/net-www/tomcat/ wget -Otomcat-4.1.24-r1.diff http://bugs.gentoo.org/attachment.cgi?id=16539&action=view patch -p0 <tomcat-4.1.24-r1.diff And emerge tomcat again. But the first way shall be faster ;)
*** Bug 31128 has been marked as a duplicate of this bug. ***
Moving this again to java@gentoo.org, so everyone out there can help.
Fixed in 5.0.18 and 4.1.29