Ubuntu – Ubuntu 14.04 server tomcat7 won’t start on reboot

14.04servertomcat7

I have tomcat7 running on server for helpdesk ticketing system (SysAid). After a reboot the tomcat7 service does not start up.

In my catalina.out file when I grep for tomcat7 I get the following:
WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]
INFO: Deploying web application archive /var/lib/tomcat7/webapps/sysaid.war
WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]
INFO: Deploying web application archive /var/lib/tomcat7/webapps/sysaid.war
Initializing log4j with: /var/lib/tomcat7/webapps/sysaid/./WEB-INF/log4j.properties
Initializing log4j with: /var/lib/tomcat7/webapps/sysaid/./WEB-INF/log4j.properties
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT

The help desk program log files show no mention of tomcat7 errors.

When I run a startup script for the program I get the following:
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
touch: cannot touch ‘/usr/share/tomcat7/logs/catalina.out’: No such file or directory
./catalina.sh: 385: ./catalina.sh: cannot create /usr/share/tomcat7/logs/catalina.out: Directory nonexistent

I also checked to make sure it was already set to run at startup through rc.d with the command: sudo update-rc.d tomcat7 defaults

Here's what I get: System start/stop links for /etc/init.d/tomcat7 already exist.

I've removed it and re-added it, with no change. Can someone help me? Thanks in advance.

Best Answer

Check this to see if it is related:

Tomcat7 installation failed via apt-get on Ubuntu 14.04

Basically, there is a dependency that may be missing (fixed with sudo apt-get install libtomcat7-java), but assuming you already did this, it seems the apt-get package is generically FUBAR and requires post-install massaging (which typically I don't recommend as apt-get reconfigure or other package commands may result in undesirable consequences).

Thus, installing the .tgz (from Apache) manually may be the most stable path of least resistance.