5 Replies Latest reply on Apr 10, 2011 9:40 AM by Abdur Rahman

    Cannot get ejb ref from a jboss-6.0.0.Final on a separat machine

    Abdur Rahman Newbie

      Hi,

       

      I am new to JBoss AS. I have installed jboss-6.0.0.Final on a separate mahcine. When I try to lookup an ejb from a different machine the following exception is thrown:

       

      javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost.localdomain; nested exception is:

          java.net.ConnectException: Connection refused]

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:841)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at com.sanmar.service.RemoteServiceManager.lookupRemoteService(RemoteServiceManager.java:35)

          at com.sanmar.service.RemoteServiceManager.getRemoteService(RemoteServiceManager.java:21)

          at com.sanmar.service.marketing.FlyerServiceImpl.getRemoteFlyerService(FlyerServiceImpl.java:43)

          at com.sanmar.service.marketing.FlyerServiceImpl.createJpegFlyer(FlyerServiceImpl.java:74)

          at com.sanmar.controller.marketing.FlyerController.createJpegFlyer(FlyerController.java:420)

          at com.sanmar.controller.marketing.FlyerController.createFlyer(FlyerController.java:362)

          at com.sanmar.controller.marketing.FlyerController.doGet(FlyerController.java:320)

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

          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 com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:222)

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

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

          at sanmar.servlets.AccessFilter.doFilter(AccessFilter.java:111)

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

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

          at sanmar.servlets.TimerFilter.doFilter(TimerFilter.java:171)

          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:233)

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

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

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

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

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

          at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)

          at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)

          at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)

          at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)

          at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)

          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)

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

      Caused by: java.rmi.ConnectException: Connection refused to host: localhost.localdomain; nested exception is:

          java.net.ConnectException: Connection refused

          at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)

          at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)

          at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)

          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)

          at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)

          ... 35 more

      Caused by: java.net.ConnectException: Connection refused

          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 java.net.Socket.<init>(Socket.java:372)

          at java.net.Socket.<init>(Socket.java:186)

          at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)

          at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)

          at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)

          ... 40 more

       

       

      Can someone assist me?

       

      Thanks in advance