0 Replies Latest reply on Jun 23, 2010 9:15 AM by akhtar qureshi

    Remotely access ejb Problem

    akhtar qureshi Newbie

      Hi. 

      1. I deploy SampleEAR to my asplserver = 192.168.1.2 in which have the SampleEJB.jar, SampleRemote.jar

      2. I deploy SampleEAR to my localhost in which have SampleWeb, SampleRemote.jar.

       

      Exception :Could not dereference object

      18:48:53,088 ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root exception is org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://asplserver:3873/?]]
      18:48:53,088 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1504)
      18:48:53,088 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)
      18:48:53,088 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
      18:48:53,088 ERROR [STDERR]      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      18:48:53,088 ERROR [STDERR]      at org.apache.jsp.index_jsp.jspInit(index_jsp.java:30)
      18:48:53,089 ERROR [STDERR]      at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:51)
      18:48:53,089 ERROR [STDERR]      at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:154)
      18:48:53,089 ERROR [STDERR]      at org.apache.jasper.servlet.JspServletWrapper.getDependants(JspServletWrapper.java:258)
      18:48:53,089 ERROR [STDERR]      at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:456)
      18:48:53,089 ERROR [STDERR]      at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:377)
      18:48:53,089 ERROR [STDERR]      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:581)
      18:48:53,089 ERROR [STDERR]      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
      18:48:53,090 ERROR [STDERR]      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
      18:48:53,090 ERROR [STDERR]      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
      18:48:53,090 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      18:48:53,090 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      18:48:53,090 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      18:48:53,090 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      18:48:53,090 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      18:48:53,091 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      18:48:53,091 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      18:48:53,092 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      18:48:53,092 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      18:48:53,092 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      18:48:53,093 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      18:48:53,093 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      18:48:53,093 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      18:48:53,093 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      18:48:53,093 ERROR [STDERR]      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      18:48:53,093 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      18:48:53,093 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      18:48:53,093 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      18:48:53,093 ERROR [STDERR]      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      18:48:53,094 ERROR [STDERR]      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      18:48:53,094 ERROR [STDERR]      at java.lang.Thread.run(Thread.java:619)
      18:48:53,094 ERROR [STDERR] Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://asplserver:3873/?]
      18:48:53,094 ERROR [STDERR]      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:776)
      18:48:53,094 ERROR [STDERR]      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
      18:48:53,094 ERROR [STDERR]      at org.jboss.remoting.Client.invoke(Client.java:1724)
      18:48:53,094 ERROR [STDERR]      at org.jboss.remoting.Client.invoke(Client.java:629)
      18:48:53,094 ERROR [STDERR]      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
      18:48:53,094 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      18:48:53,094 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:72)
      18:48:53,095 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      18:48:53,095 ERROR [STDERR]      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
      18:48:53,095 ERROR [STDERR]      at $Proxy224.createProxyBusiness(Unknown Source)
      18:48:53,095 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)
      18:48:53,095 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
      18:48:53,095 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:158)
      18:48:53,095 ERROR [STDERR]      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      18:48:53,095 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)
      18:48:53,095 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)
      18:48:53,095 ERROR [STDERR]      ... 34 more
      18:48:53,095 ERROR [STDERR] Caused by: java.net.NoRouteToHostException: No route to host
      18:48:53,095 ERROR [STDERR]      at java.net.PlainSocketImpl.socketConnect(Native Method)
      18:48:53,095 ERROR [STDERR]      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      18:48:53,095 ERROR [STDERR]      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      18:48:53,095 ERROR [STDERR]      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      18:48:53,096 ERROR [STDERR]      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      18:48:53,096 ERROR [STDERR]      at java.net.Socket.connect(Socket.java:519)
      18:48:53,096 ERROR [STDERR]      at org.jboss.remoting.transport.socket.SocketClientInvoker.connect(SocketClientInvoker.java:289)
      18:48:53,096 ERROR [STDERR]      at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:206)
      18:48:53,096 ERROR [STDERR]      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1089)
      18:48:53,096 ERROR [STDERR]      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:762)
      18:48:53,096 ERROR [STDERR]      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)
      18:48:53,096 ERROR [STDERR]      at org.jboss.remoting.Client.invoke(Client.java:1724)
      18:48:53,096 ERROR [STDERR]      at org.jboss.remoting.Client.invoke(Client.java:629)
      18:48:53,096 ERROR [STDERR]      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
      18:48:53,096 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      18:48:53,096 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:72)
      18:48:53,100 ERROR [STDERR]      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
      18:48:53,100 ERROR [STDERR]      at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
      18:48:53,100 ERROR [STDERR]      at $Proxy224.createProxyBusiness(Unknown Source)
      18:48:53,100 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)
      18:48:53,100 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
      18:48:53,100 ERROR [STDERR]      at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:158)
      18:48:53,100 ERROR [STDERR]      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      18:48:53,100 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1479)
      18:48:53,101 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1496)
      18:48:53,101 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:822)
      18:48:53,101 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
      18:48:53,101 ERROR [STDERR]      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      18:48:53,101 ERROR [STDERR]      at org.apache.jsp.index_jsp.jspInit(index_jsp.java:30)
      18:48:53,101 ERROR [STDERR]      at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:51)
      18:48:53,101 ERROR [STDERR]      at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:154)
      18:48:53,101 ERROR [STDERR]      at org.apache.jasper.servlet.JspServletWrapper.getDependants(JspServletWrapper.java:258)
      18:48:53,101 ERROR [STDERR]      at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:456)
      18:48:53,102 ERROR [STDERR]      at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:377)
      18:48:53,102 ERROR [STDERR]      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:581)
      18:48:53,102 ERROR [STDERR]      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
      18:48:53,102 ERROR [STDERR]      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
      18:48:53,102 ERROR [STDERR]      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
      18:48:53,102 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      18:48:53,102 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      18:48:53,102 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      18:48:53,102 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      18:48:53,102 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      18:48:53,102 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      18:48:53,102 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      18:48:53,102 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      18:48:53,102 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      18:48:53,103 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      18:48:53,103 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      18:48:53,103 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      18:48:53,103 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      18:48:53,142 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      18:48:53,142 ERROR [STDERR]      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      18:48:53,144 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      18:48:53,144 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      18:48:53,144 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      18:48:53,144 ERROR [STDERR]      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      18:48:53,144 ERROR [STDERR]      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      18:48:53,145 ERROR [STDERR]      at java.lang.Thread.run(Thread.java:619)
      18:48:53,145 ERROR [STDERR]      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
      18:48:53,145 ERROR [STDERR]      ... 45 more

       

       

       

      Please Help me out. how to connete distributed application