Product:
Search Type:

Tomcat service cannot be started.

Article ID: 1570 
Last Review: Mar,26 2007
APPLIES TO:
  • Plesk for Linux/Unix

RESOLUTION

SYMPTOMS:

If you start Tomcat through Plesk CP or command line, it's status is not changed and you don't see "java" processes on the server when you logged it via SSH and run "ps" command:

# ps ax | grep java | grep -v grep


returns nothing.


RESOLUTION:

Please perform the following steps in order to diagnose and fix the problem.

1. Try start Tomcat from the command line with "$PRODUCT_RC_D/tomcat4 start".
If you see the following messages:

Starting tomcat4: process already running

but there are no "java" processes running, you need to remove the following files and try to start Tomcat again:

rm -f /var/run/tomcat*.pid /var/lock/subsys/tomcat*



2. Look into /var/log/tomcat*/catalina.out for any startup errors.

3. If you see "Memory database file psa-users/DOMAIN.COM.xml cannot be read." error, please apply to the 758 article.

4. If Tomcat failed to start with some class "No such file or directory" exception, please check that there are no broken symlinks in /usr/share/tomcat*/common/lib/ directory.

5. If you see the messages like below during Tomcat startup:
/usr/bin/rebuild-jar-repository: error: could not find jta Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: All detected jars were not found for this jvm

Such problems may occur if Tomcat installation is broken. It can be several diffident Tomcat packages installed, some file missing or problem with permission/ownerships. If you cannot find the reason, try to remove all Java and Tomcat packages and reinstall them anew. You can find installed packages with the command like: rpm -qa | egrep '(java)|(tomcat)|(j2sdk)'

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields