This is the error message i am facing
I had tomcat8 already installed. i removed that and then i tried installing tomcat8 again but facing this issue and i am not able to install tomcat again. List of Steps i followed before Installing -
sudo apt-get remove tomcat8
sudo apt-get remove --auto-remove tomcat8
sudo apt-get purge tomcat8
sudo apt-get purge --auto-remove tomcat8
Now i have installed new tomcat8 from here - https://websiteforstudents.com/setup-apache-tomcat-8-8-5-on-ubuntu-16-04-18-04-lts/
and getting error - image attached above
First of all, if you are using Debian or Ubuntu, using the
tomcat8/tomcat9
packages (cf. packages.ubuntu.com) is the easiest way to run a Tomcat server.In your case the
tomcat.service
file lacks aPIDFile
option, which helps determining in a reliable way that Tomcat is running. Therefore I would modify yourtomcat.service
script to contain:Before starting the service make sure that your Tomcat is not running (
killall java
or something more subtle) and remember to reload the SystemD daemon:Edit: After the modification the
tomcat.service
file should look like this: