4
我有一個服務器上運行tomcat7,當我嘗試重新啓動tomcat7服務,它說:tomcat7.service未能啓動
Job for tomcat7.service failed because the control process exited with error code. See "systemctl status tomcat7.service" and "journalctl -xe" for details.
當我檢查我的systemctl狀態tomcat7.service,它給了我:
tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2016-12-20 11:19:29 UTC; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 5223 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAILURE)
Dec 20 11:19:24 padrum systemd[1]: Starting LSB: Start Tomcat....
Dec 20 11:19:24 padrum tomcat7[5223]: * Starting Tomcat servlet engine tomcat7
Dec 20 11:19:29 padrum tomcat7[5223]: ...fail!
Dec 20 11:19:29 padrum systemd[1]: tomcat7.service: Control process exited, code=exited status=1
Dec 20 11:19:29 padrum systemd[1]: Failed to start LSB: Start Tomcat..
Dec 20 11:19:29 padrum systemd[1]: tomcat7.service: Unit entered failed state.
Dec 20 11:19:29 padrum systemd[1]: tomcat7.service: Failed with result 'exit-code'.
我試圖使用dpkg -P和apt-get刪除卸載它。每次我嘗試重新安裝它,它都會給我一個錯誤,我無法運行我的tomcat7。
任何想法? 在此先感謝
試運行'printenv'檢查「CATALINA_BASE CATALINA_HOME'也將是巨大的,如果你可以檢查tomcat的日誌'在/ var /日誌/ tomcat7/catalina.out'因爲現在很難說什麼是錯的。 –
錯誤我現在有: 拋出java.lang.ClassNotFoundException:org.apache.catalina.startup.Catalina 在java.net.URLClassLoader.findClass(URLClassLoader.java:381) 在java.lang.ClassLoader.loadClass(類加載器。 java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:210) at org.apache.catalina.startup。 Bootstrap.main(Bootstrap.java:398) – DawgVonT
檢查'catalina.sh'設置了什麼'JRE_HOME'或'JAVA_HOME'可能路徑不正確。 –