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? -- Saludos. José Antonio Sánchez --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
