1 Reply Latest reply on Jun 12, 2012 4:22 PM by John Wheaton

    Problem with calling WebService - Can't transmit message

    ombagwu Newbie

      Hello All,

       

      Please I'll like a solution to the problem I have been having for 2 days now. I have a webservice client I developed as a stand alone application, when I run this application it connects successfully to my webservice. However when I compile and deploy it as a web application in Jboss 5.1.0-GA, it doesn't connect successfully to the webservice, instead I get an exception as shown below. I'll appreciate your solutions.

       

      13:07:53,535 ERROR [CommonClient] Exception caught while (preparing for) performing the invocation:

      java.io.IOException: Could not transmit message

              at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:265)

              at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)

              at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:340)

              at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)

              at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)

              at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)

              at $Proxy297.topup(Unknown Source)

              at org.apache.jsp.test_jsp._jspService(test_jsp.java:102)

              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)

              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker after 1 attempt(s)

              at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:249)

              at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:161)

              at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)

              at org.jboss.remoting.Client.invoke(Client.java:1724)

              at org.jboss.remoting.Client.invoke(Client.java:629)

              at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:243)

              ... 33 more

      Caused by: java.net.ConnectException: Connection refused: connect

              at java.net.PlainSocketImpl.socketConnect(Native Method)

              at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

              at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

              at java.net.Socket.connect(Socket.java:525)

              at sun.net.NetworkClient.doConnect(NetworkClient.java:158)

              at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)

              at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)

              at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)

              at sun.net.www.http.HttpClient.New(HttpClient.java:306)

              at sun.net.www.http.HttpClient.New(HttpClient.java:323)

              at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)

              at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)

              at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)

              at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:904)

              at org.jboss.remoting.transport.http.HTTPClientInvoker.getOutputStream(HTTPClientInvoker.java:1214)

              at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:334)

              at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:231)

              ... 38 more