Unable to run test on the Webservice_producer Sample
rknaik May 10, 2008 5:15 AMHi,
I am trying to run the WebService_Producer sample. I deployed the WebService_Producer in server machine and trying to do a runtest from client machine. I modified the source of the SendMessage in client machine :: in sendMessageToJBRListener method i replaced localhost with the IP address of the machine in which the Webservice_Producer is deployed. When i run ant saygoodbye_over_http from the client machine i get the following exception:
saygoodbye_over_http: [echo] Invoking a JBossWS Endpoint over HTTP (via JBoss ESB). [java] Calling JBoss Remoting Listener using locator URI: http://10.1.17.211:8765 [java] Exception in thread "main" org.jboss.remoting.CannotConnectException: Can not connect http client invoker. [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:334) [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:136) [java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122) [java] at org.jboss.remoting.Client.invoke(Client.java:1634) [java] at org.jboss.remoting.Client.invoke(Client.java:548) [java] at org.jboss.remoting.Client.invoke(Client.java:536) [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.SendMessage.sendMessageToJBRListener(SendMessage.java:72) [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.SendMessage.main(SendMessage.java:114) [java] Caused by: java.net.ConnectException: Connection timed out: connect [java] at java.net.PlainSocketImpl.socketConnect(Native Method) [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) [java] at java.net.Socket.connect(Socket.java:520) [java] at sun.net.NetworkClient.doConnect(NetworkClient.java:152) [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:388) [java] at sun.net.www.http.HttpClient.openServer(HttpClient.java:523) [java] at sun.net.www.http.HttpClient.<init>(HttpClient.java:231) [java] at sun.net.www.http.HttpClient.New(HttpClient.java:304) [java] at sun.net.www.http.HttpClient.New(HttpClient.java:321) [java] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813) [java] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765) [java] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690) [java] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:857) [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:276) [java] ... 7 more
Can anyone help me in this regard please