Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 48061  / 3 Years ago, sun, june 27, 2021, 6:06:12

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. :(


More From » 12.04

 Answers
0

When installed using the tomcat7 package, it is intended that you start and stop Tomcat using upstart (service tomcat start) or the /etc/init.d/tomcat script. If you start it using the startup.sh script then it is likely to have its environmental variables incorrectly configured.



Please see my answer to your previous question (How should I install Apache Tomcat 7 for use with Eclipse?) for a better way to install Tomcat if you don't want to run it as a service.


[#30574] Monday, June 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fotres

Total Points: 35
Total Questions: 124
Total Answers: 112

Location: Federated States of Micronesia
Member since Sat, Jun 4, 2022
2 Years ago
;