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 tomcat8sudo apt-get remove --auto-remove tomcat8sudo apt-get purge tomcat8sudo 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/tomcat9packages (cf. packages.ubuntu.com) is the easiest way to run a Tomcat server.In your case the
tomcat.servicefile lacks aPIDFileoption, which helps determining in a reliable way that Tomcat is running. Therefore I would modify yourtomcat.servicescript to contain:Before starting the service make sure that your Tomcat is not running (
killall javaor something more subtle) and remember to reload the SystemD daemon:Edit: After the modification the
tomcat.servicefile should look like this: