Bug 134572 - Tomcat won't start
Summary: Tomcat won't start
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Java (show other bugs)
Version: Final
Hardware: x86 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: Daniel Bornkessel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-20 05:20 UTC by Branislav Bozgai
Modified: 2005-11-25 16:34 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Branislav Bozgai 2005-11-20 05:20:54 UTC
On SUSE 10.0 Retail Tomcat won't start due to 2 issues.

1)
On line 117 in /etc/rc.d/tomcat5 -L needs to be added to chown command.
Original line
test -d "$dir" && chown -R --dereference tomcat:tomcat "$dir" 2>/dev/null || true
needs to be changed to
test -d "$dir" && chown -L -R --dereference tomcat:tomcat "$dir" 2>/dev/null || true

2)
Tomcat is su-ed to tomcat thus unable to create pid file in /var/run
Following will remedy the situation:
# touch /var/run/tomcat5.pid
# chown tomcat:tomcat /var/run/tomcat5.pid
The two above commands shoud be best added to /etc/rc.d/tomcat5
Comment 1 Sonja Krause-Harder 2005-11-21 13:39:58 UTC
Thanks!

Reassigning to current maintainer...
Comment 2 Daniel Bornkessel 2005-11-22 15:06:54 UTC
Thanks for the bug report and the included tips.
The problems you described are errors and will be fixed.
However, on my system (and on systems of others I asked) the tomcat still starts -- regardless of this problems.
Does tomcat start with only those changes you described above?
If so I can not re-create the bug ... 
Is it possible to attach
/usr/share/tomcat5/logs/catalina.out
of the broken configuration? That could help me narrow down the problem.

Thanks,
Daniel
Comment 3 Branislav Bozgai 2005-11-22 19:41:03 UTC
I was actually installing the open-xchange rpm when I came across the Tomcat issue.
I was following the steps in /usr/share/doc/packages/open-xchange/README.SUSE
There are several lines related to Tomcat changes.
My system is operational now and I'm unfortunately not able to provide you with the required logs nor I have other system to install from scratch.
Please look at the open-xchage readme in Tomcat section for some possible causes.
Comment 4 Daniel Bornkessel 2005-11-23 13:18:40 UTC
I did the changes proposed in the first comment -- thanks.

Ralf, do you know anything about the problem regarding tomcat does not start when the instructions in the open-xchange README.SUSE are followed?
Comment 5 Ralf Haferkamp 2005-11-25 11:40:16 UTC
No, I have not heard of any such problems. For me the instructions in the Readme worked (I had to make smaller adjustments to the file recently, but IIRC they were unrelated to tomcat).
Comment 6 Daniel Bornkessel 2005-11-25 16:34:56 UTC
Right now I have to assume that the tomcat problems were connected to a wrong JAVA_HOME variable as described in Bug #129641 , which was indeed a problem.\
As this problem is fixed now, I will close this bug.
If somebody still encounters the same problem, please feel free to re-open the bug.

Best regards,
Daniel