• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Tomcat problem

C

CesarV

Guest
The tomcat has stopped working. I tried to restart the service, but the following message appears in the status:
lock file found but no process running for pid 9455

I ran yum reinstall the packages java-1.4.2-gcj-compat-1.4.2.0-40jpp.115, java-1.6.0-openjdk-devel-1.6.0.0-1.7.b09.el5, java-1.6.0-openjdk-1.6.0, psa-tomcat-configurator-9.2.3-cos5.build92091016.19, tomcat5-jsp-2.0-api-5.5.23-0jpp.7.el5_3.2, tomcat5-admin-webapps-5.5.23-0jpp.7.el5_3.2, tomcat5-jasper-5.5.23-0jpp.7.el5_3.2, tomcat5-server-lib-5.5.23-0jpp.7.el5_3. 2, tomcat5-5.5.23-0jpp.7.el5_3.2, tomcat5-webapps-5.5.23-0jpp.7.el5_3.2, tomcat5-servlet-2.4-api-5.5.23-0jpp.7.el5_3.2 and tomcat5-common-lib-5.5.23-0jpp.7.el5_3.2

After trying to reinstall without success, I removed and re-installed packages using the command /usr/local/psa/admin/bin/autoinstall, but tomcat did not work.

The detail is that the /etc/rc.d/init.do script execution "tomcat5" disappeared.

The logs show the following:

Caused by: java.lang.ClassNotFoundException: java.io.IOException
at java.net.URLClassLoader $ 1.run (URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (URLClassLoader.java: 205)
at java.lang.ClassLoader.loadClass (ClassLoader.java: 319)
at java.lang.ClassLoader.loadClass (ClassLoader.java: 264)
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java: 332)
... 38 more
Using CATALINA_BASE: / usr/share/tomcat5
Using CATALINA_HOME: / usr/share/tomcat5
Using CATALINA_TMPDIR: / usr/share/tomcat5/temp
Using JRE_HOME:
Jan 18, 2010 10:25:14 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
java.net.PlainSocketImpl.socketConnect at (Native Method)
at java.net.AbstractPlainSocketImpl.doConnect (AbstractPlainSocketImpl.java: 310)
at java.net.AbstractPlainSocketImpl.connectToAddress (AbstractPlainSocketImpl.java: 176)
at java.net.AbstractPlainSocketImpl.connect (AbstractPlainSocketImpl.java: 163)
at java.net.SocksSocketImpl.connect (SocksSocketImpl.java: 381)
at java.net.Socket.connect (Socket.java: 537)
at java.net.Socket.connect (Socket.java: 487)
at java.net.Socket. <init> (Socket.java: 384)
at java.net.Socket. <init> (Socket.java: 198)
org.apache.catalina.startup.Catalina.stopServer at (Catalina.java: 395)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java: 57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java: 43)
at java.lang.reflect.Method.invoke (Method.java: 616)
org.apache.catalina.startup.Bootstrap.stopServer at (Bootstrap.java: 344)
at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java: 435)

What should I do to solve the problem?

Thank you.
 
Yes IgorG, this is the version installed on my server, but Tomcat does not start. I tried to restart the service, but the following message appears in the status: lock file found but no process running for pid 9455

What can I do?
 
Try to kill all tomcat related processes and delete lock file. After that try to start Tomcat. Contact support team if it not help.
 
Back
Top