Symptoms
-
Non-Plesk Tomcat was previously installed, used and removed
-
Plesk Tomcat was installed via Plesk > Tools & Settings > Updates and Upgrades > Add/Remove Components > Web hosting > Support for Tomcat Java Servlets > Continue
-
Tomcat service cannot be started due to the following error:
# service tomcat status
● tomcat.service – Apache Tomcat Web Application Container
Active: failed (Result: exit-code) since Wed 2017-12-20 21:27:38 UTC; 6s agoip-203-0-113-2.server.hostname server[1995]: at java.net.URLClassLoader$1.run(URLClassLoader.java:201)
ip-203-0-113-2.server.hostname server[1995]: at java.security.AccessController.doPrivileged(Native Method)
<..>
ip-203-0-113-2.server.hostname server[1995]: at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
ip-203-0-113-2.server.hostname systemd[1]: tomcat.service: main process exited, code=exited, status=1/FAILURE
ip-203-0-113-2.server.hostname systemd[1]: Unit tomcat.service entered failed state.
ip-203-0-113-2.server.hostname systemd[1]: tomcat.service failed.
Cause
Files that contain required classes are missing.
Resolution
For CentOS:
- Connect to the server via SSH;
-
Check the existence of the following files on the server:
# ls -la /usr/share/tomcat/bin/bootstrap.jar
-rw-r–r– 1 root tomcat 29207 Oct 30 17:22 /usr/share/tomcat/bin/bootstrap.jar# ls -la /usr/share/tomcat/bin/tomcat-juli.jar
-rw-r–r– 1 root root 38548 Oct 30 17:22 /usr/share/tomcat/bin/tomcat-juli.jar# ls -la /usr/share/java/commons-daemon.jar
-rw-r–r– 1 root root 23754 Jun 10 2014 /usr/share/java/commons-daemon.jar -
If some of them are missing, download them from attachments and move to the required folders.