"Address already in use: JVM_Bind" while trying to start the server. Why?

Archived Content
This article is provided for historical perspective only, and may not reflect current conditions. Please refer to relevant product page for more up-to-date product information and resources.
  • By Deepal Jayasingha
  • 13 Jun, 2006

A : When you invoke a service using two channels, service client start up SimpleHTTPServer in port 6060 (this is the default port specified in axis2.xml), the server will not stop unless you call serviceClent.finalizeInvoke();

So when you try to invoke the service a second time in the same manner, you will get the above mentioned exception as Axis2 tries to start up SimpleHTTPServer in the same port (6060).

There are two solutions to this problem:

1.Reuse service client for all invocation

2.First create configuration context and then create any number of service clients using the created configuration context.