Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27144 - tomcat don't start, permission denied
Summary: tomcat don't start, permission denied
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 31128 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-22 13:46 UTC by Andreas Boeyer
Modified: 2004-02-15 17:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diff -u tomcat-4.1.24-r1.ebuild (tomcat-4.1.24-r1.diff,597 bytes, patch)
2003-08-24 09:48 UTC, Florian Bauhaus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Boeyer 2003-08-22 13:46:08 UTC
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.
Comment 1 Andreas Boeyer 2003-08-22 13:51:16 UTC
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. 
Comment 2 Florian Bauhaus 2003-08-24 09:48:58 UTC
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.
Comment 3 Andreas Boeyer 2003-08-25 05:05:01 UTC
How do I get the new ebuild? 
with emerge sync? 
Comment 4 Florian Bauhaus 2003-08-25 07:12:49 UTC
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 ;)
Comment 5 Adrian Almenar 2003-10-14 14:10:57 UTC
*** Bug 31128 has been marked as a duplicate of this bug. ***
Comment 6 Adrian Almenar 2003-12-19 21:55:26 UTC
Moving this again to java@gentoo.org, so everyone out there can help.
Comment 7 Chris Aniszczyk (RETIRED) gentoo-dev 2004-02-15 17:20:22 UTC
Fixed in 5.0.18 and 4.1.29