I have a Server running tomcat7, when I try to restart the tomcat7 service it says:
Job for tomcat7.service failed because the control process exited with error code. See "systemctl status tomcat7.service" and "journalctl -xe" for details.
When i check my systemctl status tomcat7.service, it gives me:
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'.
I tried uninstalling it with dpkg -P and apt-get remove. everytime I try to reinstall it it gives me an error that i can't run my tomcat7.
Any ideas? Thanks in advance
I had a similar issue, turns out that
setenv.sh
file in/usr/share/tomcat/tomcat8/bin
had a line that points toJAVA_HOME
. I commented that by adding # before that line and restarting tomcat. It worked!