Saturday, January 8, 2011

Problem with using tomcat startup/shutdown.sh


FROM : http://ubuntuforums.org/showthread.php?t=1018063



Re: Problem with using tomcat startup/shutdown.sh









I had the same problem, but using the new way to start/stop services introduced in Intrepid Ibex works nicely:





$ sudo service tomcat6 stop

* Stopping Tomcat servlet engine tomcat6 [ OK ]

$ sudo service tomcat6 start

* Starting Tomcat servlet engine tomcat6 [ OK ]

$





or of course the more traditional way:



I have installed tomcat6 from synaptic and after viewing http://localhost:8080 it shows the "it works" screen and shows my catalina variables as being...



CATALINA_HOME=/usr/share/tomcat6

CATALINA_BASE=/var/lib/tomcat6



...however running the shutdown script gives the following error...



Using CATALINA_BASE: /usr/share/tomcat6

Using CATALINA_HOME: /usr/share/tomcat6


Using CATALINA_TMPDIR: /usr/share/tomcat6/temp

Using JRE_HOME: /usr

21-Dec-2008 23:24:39 org.apache.catalina.startup.Catali

## Solution

$ sudo /etc/init.d/tomcat6 stop

* Stopping Tomcat servlet engine tomcat6 [ OK ]

$ sudo /etc/init.d/tomcat6 start

* Starting Tomcat servlet engine tomcat6 [ OK ]