0 Replies Latest reply on Mar 18, 2010 9:46 AM by Kobi Ianko

    following the article "EJBOverHTTPWithLegacyInvoker" causes exceptionEJBOverHTTPWithLegacyInvoker

    Kobi Ianko Apprentice

      Hi All,

      after following this article:

      http://community.jboss.org/wiki/EJBOverHTTPWithLegacyInvoker

       

      I got this exception on the client side:( this is thrown apon the "ctx.lookup("jndiName");" line )

       

      Created InitialContext, env= {java.naming.provider.url=http://172.18.18.38/invoker/JNDIFactory, java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory}
      javax.naming.CommunicationException: Operation failed [Root exception is java.rmi.ServerException: IOE; nested exception is:
          java.net.ConnectException: Connection refused: connect]
          at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:65)
          at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
          at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
          at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
          at $Proxy0.lookup(Unknown Source)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
          at javax.naming.InitialContext.lookup(InitialContext.java:392)
          at MainHandler.main(MainHandler.java:31)
      Caused by: java.rmi.ServerException: IOE; nested exception is:
          java.net.ConnectException: Connection refused: connect
          at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:133)
          at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
          at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
          at org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:57)
          ... 8 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 java.net.Socket.connect(Socket.java:475)
          at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
          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.invocation.http.interfaces.Util.invoke(Util.java:163)
          at org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:118)
          ... 11 more

       

      working with JBoss AS 4.0.5, EJB 2.1

       

      will appreciate any help

      10x,

      Kobi