aspose file tools*
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Getting Address Already  in use error" Watch "Getting Address Already  in use error" New topic
Author

Getting Address Already in use error

Nitin Kumar
Greenhorn

Joined: Apr 18, 2005
Posts: 29
Hi,

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?

Thanks
Nitin
Ben Souther
Sheriff

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
Greenhorn

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

When I changed the shutdown port , it got started.

Regards
Nitin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Address Already in use error