• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Tomcat Service Failure

J

Jeremy S

Guest
I just upgraded my server to Plesk 9.2 last night. This morning I noticed that none of my Java scripts are executing and Tomcat isn't running. I tried to start it both through the control panel as well as through SSH. It responds with

tomcat unrecognized service.

Any suggestions?
 
I found this on the Redhat website and it is a known bug. It ioncludes the instructions on how to fix this. I am not a guru and don't know the commands. Can someone please help to figure out the command to change the user and group that can access that file.

Thanks in advance for your help.

Description of problem:
tomcat does not start: /var/log/tomcat5/cacalina.out holds:
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
touch: kann „/usr/share/tomcat5/logs/catalina.out“ nicht berühren: Keine
Berechtigung
/usr/bin/dtomcat5: line 325: /usr/share/tomcat5/logs/catalina.out: Keine
Berechtigung


Version-Release number of selected component (if applicable):
tomcat5-5.5.25-1jpp.1.fc7

How reproducible:
always

Steps to Reproduce:
1. Install tomcat5
2. rm -rf /var/log/tomcat5/*
3. /etc/init.d/tomcat5 start

Actual results:
Tomcat doesn't start because root creates the file "/var/log/tomcat5/
catalina.out" and after tomcat switching to user tomcat, group tomcat it
looses access to "catalina.out".

Expected results:
The init script has to
- check if /var/log/tomcat5/catalina.out exists
if not: create it
- check if owner is the one tomcat will run as
if not: change owner
- check if group is the one tomcat will run as
if not: change group

The init script does not do any of these checks.


Additional info:
--- tomcat5.old 2007-12-27 12:44:16.000000000 +0100
+++ tomcat5 2007-12-27 12:41:29.000000000 +0100
@@ -64,9 +64,16 @@
# Define the tomcat username
TOMCAT_USER="${TOMCAT_USER:-tomcat}"

+# Define the tomcat group
+TOMCAT_GROUP="${TOMCAT_GROUP:-tomcat}"
+
# Define the tomcat log file
TOMCAT_LOG="${TOMCAT_LOG:-/var/log/tomcat5/catalina.out}"

+test -e $TOMCAT_LOG || touch $TOMCAT_LOG
+chown $TOMCAT_USER:$TOMCAT_GROUP $TOMCAT_LOG
+
+
RETVAL="0"

# remove when the RHEL and FC daemon functions converge


The same problem is with
- Fedora 7
- Fedora 8
- Fedora 8.90
- CentOS 4+
- CentOS 5, 5.1
- RHEL 5, 5.1
 
Back
Top