<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Problem with calling WebService - Can't transmit message
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/ombagwu">Kobi Mbagwu</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/595938#595938">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello All,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>13:07:53,535 ERROR [CommonClient] Exception caught while (preparing for) performing the invocation:</p><p>java.io.IOException: Could not transmit message</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:265)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:71)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:340)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at $Proxy297.topup(Unknown Source)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.jsp.test_jsp._jspService(test_jsp.java:102)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:619)</p><p>Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker after 1 attempt(s)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:249)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:161)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.Client.invoke(Client.java:1724)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.Client.invoke(Client.java:629)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:243)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ... 33 more</p><p>Caused by: java.net.ConnectException: Connection refused: connect</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.PlainSocketImpl.socketConnect(Native Method)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.Socket.connect(Socket.java:525)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.NetworkClient.doConnect(NetworkClient.java:158)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.http.HttpClient.&lt;init&gt;(HttpClient.java:233)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.http.HttpClient.New(HttpClient.java:306)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.http.HttpClient.New(HttpClient.java:323)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:904)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.transport.http.HTTPClientInvoker.getOutputStream(HTTPClientInvoker.java:1214)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:334)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:231)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ... 38 more</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/595938#595938">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>