I'm facing an issue while installing Tomcat7 in Ubuntu 14.04. The JDK is already installed on my system (1.7 version), but when I use apt-get install tomcat7
I get the below error:
Setting up tomcat7-common (7.0.52-1ubuntu0.1) ...
Setting up tomcat7 (7.0.52-1ubuntu0.1) ...
Creating config file /etc/default/tomcat7 with new version
Adding system user `tomcat7' (UID 108) ...
Adding new user `tomcat7' (UID 108) with group `tomcat7' ...
Not creating home directory `/usr/share/tomcat7'.
Creating config file /etc/logrotate.d/tomcat7 with new version
* Starting Tomcat servlet engine tomcat7 **[fail]**
I tried all solutions I could find on the Internet, like:
Uninstalled tomcat7 using
apt-get purge tomcat7
orapt-get autoremove tomcat7
and again installed but got the same error. :(Tried
apt-get update
, remove tomcat7 and again installed but failed.Set the CATALINA path in
.bashrc
or/etc/environment
. But got no luck.
Note: I have installed the same tomcat7 on my local Ubuntu 14.04 server and it installed correctly in a first attempt.