I have a problem starting tomcat from terminal. I installed tomcat using - sudo apt-get install tomcat7
, few days back. Now when I'm starting it using the below command, I'm getting the following error:
~/tomcat7/bin$ sudo ./startup.sh
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: 389: ./catalina.sh: cannot create /usr/share/tomcat7/logs/catalina.out: Directory nonexistent
I can't understand what went wrong. I was able to access - http://localhost:8080
when I installed it. But then, I ran the command to disable the startup at boot time:
sudo update-rc.d tomcat remove
And now it's not starting at all. :(