Failed to start tomcat7.service

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 tomcat7.service status, 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 removing it with dpkg -P and apt-get remove. every time I try to reinstall it, it gives me an error that I cannot start my tomcat7.

Any ideas? thanks in advance

+4
source share
1 answer

I had a similar problem, it turned out that setenv.shthere /usr/share/tomcat/tomcat8/binwas a line in the file in pointing to JAVA_HOME. I commented on this by adding # before this line and restarting tomcat. It worked!

0

Source: https://habr.com/ru/post/1664290/


All Articles