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. :(
~/tomcat7
?) as the one from Ubuntu won't write log files to/usr/share/tomcat7/logs
, but to/var/log
somewhere. Didn't you mean to run Tomcat likeservice tomcat start
?/usr/share/tomcat7/webapps
directory. But when I access the page, It show 404 error. Then I moved the war file to -/var/lib/tomcat7/webapps
, there also it's showing the same error. How would I deploy the war? If you want, I can post it as a different question.