This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 172621 - Tomcat 6 failed to start because permissions denied
Summary: Tomcat 6 failed to start because permissions denied
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-20 14:56 UTC by hoda
Modified: 2009-09-23 20:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
tomcat 6 failed to start from within Netbeans 6.5 running on Fedora 11 (2.98 KB, text/plain)
2009-09-20 14:58 UTC, hoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hoda 2009-09-20 14:56:11 UTC
Tomcat pop up windows appears with message "failed to start" after trying to start a tomcat 6 server from within
Netbeans 6.5 GUI (menu Server > Server add) running on Fedora 11.

java.io.FileNotFoundException: /usr/share/tomcat6 ... /logs/ and /conf/ (Permission denied)
Comment 1 hoda 2009-09-20 14:58:29 UTC
Created attachment 87973 [details]
tomcat 6 failed to start from within Netbeans 6.5 running on Fedora 11
Comment 2 Petr Hejl 2009-09-21 09:49:27 UTC
Message is quite clear. The user under which NetBeans is running does not have proper rights for tomcat directories.

Use a different CATALINA_BASE or fix the permissions or (for your particular case) add user which executes NetBeans to
tomcat group.

/etc/rc.d/init.d/tomcat6 start can only be executed as root afaik so it is not that relevant imo. 
Comment 3 hoda 2009-09-23 20:33:45 UTC
I stay with /usr/share/tomcat6 = CATALINA_HOME alone instead of using a different CATALINA_BASE.
This because i prefer respect the FHS of fedora 11 and found all my logfiles inside /var/log/tomcat6 (and tmp inside
/var/cache/tomcat6/temp/ and ...).

Permission problem was resolved with :
chown -R tomcat:tomcat /var/log/tomcat6
chmod 770 /var/log/tomcat6
usermod -a -G tomcat username_using_netbeans

Thanks.