Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88824 - tomcat-5.0.27-r4 & blackdown-jdk-1.4.2.01-r2 symlink problem
Summary: tomcat-5.0.27-r4 & blackdown-jdk-1.4.2.01-r2 symlink problem
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-12 03:05 UTC by Stephen Tallowitz
Modified: 2005-04-12 07:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Tallowitz 2005-04-12 03:05:29 UTC
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.
Comment 1 Stephen Tallowitz 2005-04-12 04:09:57 UTC
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
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-12 07:14:11 UTC
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