Jose, are you using the same conf. file (i.e. axis2.xml) on both client and server side (the response is 'yes' even if one is the copy of the other)? If the response is 'yes' please read the thread "BindException in axis client" of 2 days ago.
Michele On Wed, 2007-04-25 at 17:02 +0200, José Antonio Sánchez wrote: > I have a service deployed in Axis2 using Tomcat as container and it's > running in port 8080. Now I'm trying to access some operations in that > service using two connections as described here: > > http://ws.apache.org/axis2/1_1_1/adv-userguide.html > > So I've added this code to my client: > > stub._getServiceClient().engageModule(new QName("addressing")); > stub._getServiceClient().getOptions().setUseSeparateListener(true); > > and to make it work I have created a ConfigurationContext from my > local Axis2 installation. The server and client are running in the > same machine. The problem is that when I try to invoke the service I > get the following exception: > > 5-abr-2007 16:43:05 org.apache.axis2.transport.http.SimpleHTTPServer start > GRAVE: java.net.BindException: Address already in use > org.apache.axis2.AxisFault: Address already in use; nested exception is: > java.net.BindException: Address already in use > at > org.apache.axis2.transport.http.SimpleHTTPServer.start(SimpleHTTPServer.java:212) > at > org.apache.axis2.engine.ListenerManager.addListener(ListenerManager.java:193) > at > org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:101) > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:253) > at > org.lsd.transfs.installation.service.InstallationServiceStub.startInstall(InstallationServiceStub.java:890) > at > org.lsd.transfs.installation.InstallationServiceTest.main(InstallationServiceTest.java:135) > Caused by: java.net.BindException: Address already in use > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) > at java.net.ServerSocket.bind(ServerSocket.java:319) > at java.net.ServerSocket.<init>(ServerSocket.java:185) > at java.net.ServerSocket.<init>(ServerSocket.java:97) > at > org.apache.axis2.transport.http.server.DefaultConnectionListener.<init>(DefaultConnectionListener.java:72) > at > org.apache.axis2.transport.http.server.DefaultConnectionListener.<init>(DefaultConnectionListener.java:55) > at > org.apache.axis2.transport.http.server.HttpFactory.newRequestConnectionListener(HttpFactory.java:199) > at > org.apache.axis2.transport.http.server.SimpleHttpServer.init(SimpleHttpServer.java:80) > at > org.apache.axis2.transport.http.SimpleHTTPServer.start(SimpleHTTPServer.java:208) > ... 5 more > > I suppose it's because it's trying to bind a socket to the 8080 port > that it's now busy with the service listening, so, is there a way that > I can specify to the client what port it must use when creating a > listener for an asynchronous call? > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]