tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Ong" <tk...@bass.com.my>
Subject Problem in shutting down TOMCAT 4.0
Date Fri, 25 Jan 2002 03:42:08 GMT
Hi all,

I have installed Apache 1.3.3 and TOMCAT 4.0.1 in HPUX 11, with following
JDK version ...
Java(TM) 2 Runtime Environment, Standard Edition (build
1.3.1.02-011206-02:17)
Java HotSpot(TM) Server VM (build 1.3.1 1.3.1.02-JPSE_1.3.1.02_20011206
PA1.1, mixed mode)

************** Initially when i start TOMCAT, it start without any problem
and i can access it from http://localhost:8080. Below is the start up
message shown **************
# startup.sh
Guessing CATALINA_HOME from catalina.sh to /appl1/j2ee/catalina/bin/..
Setting CATALINA_HOME to /appl1/j2ee/catalina/bin/..
Using CLASSPATH:
/appl1/j2ee/catalina/bin/../bin/bootstrap.jar:/opt/java1.3/lib/tools.jar
Using CATALINA_BASE: /appl1/j2ee/catalina/bin/..
Using CATALINA_HOME: /appl1/j2ee/catalina/bin/..
Using JAVA_HOME:     /opt/java1.3

************** So now i try to shut it down ************************
# shutdown.sh
Guessing CATALINA_HOME from catalina.sh to /appl1/j2ee/catalina/bin/..
Setting CATALINA_HOME to /appl1/j2ee/catalina/bin/..
Using CLASSPATH:
/appl1/j2ee/catalina/bin/../bin/bootstrap.jar:/opt/java1.3/lib/tools.jar
Using CATALINA_BASE: /appl1/j2ee/catalina/bin/..
Using CATALINA_HOME: /appl1/j2ee/catalina/bin/..
Using JAVA_HOME:     /opt/java1.3

************** Once again, i start the TOMCAT again ..... the result shown
from command prompt is same as above ... no problem show . But when i check
the catalina.out ... i seen these message **************

Catalina.start: LifecycleException:  Error creating server socket:
java.net.BindException: Address already in use
LifecycleException:  Error creating server socket:  java.net.BindException:
Address already in use
 at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:483)
 at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
 at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(Unknown Source)
 at java.net.ServerSocket.<init>(Unknown Source)
 at java.net.ServerSocket.<init>(Unknown Source)
 at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:118)
 at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:477)
 at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
 at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


First i was quite confuse because I tought i have shut down the TOMCAT
successfully. So i tried to type this in command prompt ::
#ps -ef | grep java
root 18766     1  0 11:26:38 pts/tl    1:27
/opt/java1.3/bin/../bin/PA_RISC/native_threads/java -classpa

so now i type this ::
#kill -9 18766

After i have kill  above process, i can run the startup.sh and boot TOMCAT
successfully.

So from now on, i have to kill the process manually in order to completely
shutdown TOMCAT. shutdown.sh cannot kill the process for me.

How can solve the problem? it so troublesm for me to shutdown TOMCAT if i
have to repeat these steps everytime.






--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message