wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Getting Address Already  in use error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Getting Address Already  in use error" Watch "Getting Address Already  in use error" New topic

Getting Address Already in use error

Nitin Kumar

Joined: Apr 18, 2005
Posts: 29

I have dowloaded Tomcat 5.5.9 from Apache site. When I try to start the server it gives me following eror.

SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:346
----- More stacktrace

I changed the port in conf/server.xml to 80 and 8000 but still it is not geting started. What can be the reason behid this and what is the solution?

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

It looks like the shutdown port (8005) is the problem.
If you're running more than one instance of Tomcat, you will need to change that one as well. It's in your server.xml file.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Nitin Kumar

Joined: Apr 18, 2005
Posts: 29
Thanks Ben,

When I changed the shutdown port , it got started.

subject: Getting Address Already in use error
Similar Threads
Error Starting TOMCAT
Error Starting TOMCAT
Error Starting TOMCAT
Weblogic Port 7001 initialization error