0 Replies Latest reply on Apr 13, 2009 5:54 PM by Gurinder Randhawa

    Caused by: org.jboss.remoting.CannotConnectException: Can no

    Gurinder Randhawa Newbie

      We are running JBoss 4.3 EAP CP02, on Java 6u7 and running into a connectivity issue. Has anyone encountered this problem? We are using JAX WS 2.* libraries.

      C:\wstest\wstest>java -Djava.endorsed.dirs="C:\servers\jboss-eap-4.3.0.GA_CP02\jboss-as\lib\endorsed
      " -Dsun.lang.ClassLoader.allowArraySyntax=true com.owa.ws.client.WsTest
      Exception in thread "main" java.rmi.RemoteException: Call invocation failed; nested exception is:
      java.io.IOException: Could not transmit message
      at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:536)
      at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
      at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
      at $Proxy0.sayHello(Unknown Source)
      at com.owa.ws.client.WsTest.main(WsTest.java:33)
      Caused by: java.io.IOException: Could not transmit message
      at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:210)
      at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
      at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337)
      at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
      ... 4 more
      Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Connectio
      n refused: connect.
      at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoke
      r.java:348)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)

      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
      at org.jboss.remoting.Client.invoke(Client.java:1634)
      at org.jboss.remoting.Client.invoke(Client.java:548)
      at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:189)
      ... 7 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.Socket.connect(Socket.java:519)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:152)
      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.(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:788)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
      at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:832)
      at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoke
      r.java:277)
      ... 12 more

      C:\wstest\wstest>echo "Test completed"
      "Test completed"

      C:\wstest\wstest>