[jboss-user] [Installation, Configuration & DEPLOYMENT] - Can not get connection to server. Problem establishing socke

alexsbe do-not-reply at jboss.com
Tue Apr 22 03:50:16 EDT 2008


I have installed an EJB on a jboss 4.2.2 server (On a red hat distribution)  It is correctly deployed.


I have a remote server or client I always have this trace bellow :
I start the server with run.sh -b 0.0.0.0, and-Djava.rmi.server.hostname=


org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://127.0.0.1:3873/]
  | 	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:532)
  | 	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.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
  | 	at $Proxy0.login(Unknown Source)
  | 	at com.sbe.poolstock.servlet.LoginServlet.login(LoginServlet.java:143)
  | 	at com.sbe.poolstock.servlet.LoginServlet.service(LoginServlet.java:74)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
  | 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
  | 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  | 	at com.nexaweb.server.servlet.forwarder.RequestForwardingServiceImpl.forward(RequestForwardingServiceImpl.java:121)
  | 	at com.nexaweb.server.protocol.HandleEventExecutor.executeCommand(HandleEventExecutor.java:72)
  | 	at com.nexaweb.server.protocol.ServerProtocolExecutor.executeCommand(ServerProtocolExecutor.java:40)
  | 	at com.nexaweb.protocol.ProtocolExecutorManager.executeCommand(ProtocolExecutorManager.java:116)
  | 	at com.nexaweb.protocol.ProtocolNamespaceHandler.receiveDispatch(ProtocolNamespaceHandler.java:91)
  | 	at com.nexaweb.server.protocol.ServerProtocolNamespaceHandler.receiveDispatch(ServerProtocolNamespaceHandler.java:96)
  | 	at com.nexaweb.xml.NamespaceHandler.receiveDispatch(NamespaceHandler.java:109)
  | 	at com.nexaweb.xml.NamespaceHandlerManager.dispatch(NamespaceHandlerManager.java:102)
  | 	at com.nexaweb.xml.ParserImpl.parseFragment(ParserImpl.java:317)
  | 	at com.nexaweb.xml.ParserImpl.parseDomTree(ParserImpl.java:283)
  | 	at com.nexaweb.xml.ParserImpl.parseDomTree(ParserImpl.java:222)
  | 	at com.nexaweb.xml.DocumentImpl.<init>(DocumentImpl.java:161)
  | 	at com.nexaweb.xml.ParserImpl.parseXmlWithProcessing(ParserImpl.java:526)
  | 	at com.nexaweb.server.servlet.NexawebServlet.executeProtocol(NexawebServlet.java:374)
  | 	at com.nexaweb.server.servlet.NexawebServlet.service(NexawebServlet.java:229)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  | 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  | 	at java.lang.Thread.run(Unknown Source)
  | Caused by: java.net.ConnectException: Connection refused: connect
  | 	at java.net.PlainSocketImpl.socketConnect(Native Method)
  | 	at java.net.PlainSocketImpl.doConnect(Unknown Source)
  | 	at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
  | 	at java.net.PlainSocketImpl.connect(Unknown Source)
  | 	at java.net.SocksSocketImpl.connect(Unknown Source)
  | 	at java.net.Socket.connect(Unknown Source)
  | 	at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:187)
  | 	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:815)
  | 	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:525)
  | 	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.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
  | 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | 	at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
  | 	at $Proxy0.login(Unknown Source)
  | 	at com.sbe.poolstock.servlet.LoginServlet.login(LoginServlet.java:143)
  | 	at com.sbe.poolstock.servlet.LoginServlet.service(LoginServlet.java:74)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
  | 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
  | 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  | 	at com.nexaweb.server.servlet.forwarder.RequestForwardingServiceImpl.forward(RequestForwardingServiceImpl.java:121)
  | 	at com.nexaweb.server.protocol.HandleEventExecutor.executeCommand(HandleEventExecutor.java:72)
  | 	at com.nexaweb.server.protocol.ServerProtocolExecutor.executeCommand(ServerProtocolExecutor.java:40)
  | 	at com.nexaweb.protocol.ProtocolExecutorManager.executeCommand(ProtocolExecutorManager.java:116)
  | 	at com.nexaweb.protocol.ProtocolNamespaceHandler.receiveDispatch(ProtocolNamespaceHandler.java:91)
  | 	at com.nexaweb.server.protocol.ServerProtocolNamespaceHandler.receiveDispatch(ServerProtocolNamespaceHandler.java:96)
  | 	at com.nexaweb.xml.NamespaceHandler.receiveDispatch(NamespaceHandler.java:109)
  | 	at com.nexaweb.xml.NamespaceHandlerManager.dispatch(NamespaceHandlerManager.java:102)
  | 	at com.nexaweb.xml.ParserImpl.parseFragment(ParserImpl.java:317)
  | 	at com.nexaweb.xml.ParserImpl.parseDomTree(ParserImpl.java:283)
  | 	at com.nexaweb.xml.ParserImpl.parseDomTree(ParserImpl.java:222)
  | 	at com.nexaweb.xml.DocumentImpl.<init>(DocumentImpl.java:161)
  | 	at com.nexaweb.xml.ParserImpl.parseXmlWithProcessing(ParserImpl.java:526)
  | 	at com.nexaweb.server.servlet.NexawebServlet.executeProtocol(NexawebServlet.java:374)
  | 	at com.nexaweb.server.servlet.NexawebServlet.service(NexawebServlet.java:229)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  | 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  | 	at java.lang.Thread.run(Unknown Source)
  | 	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
  | 	... 48 more

I found this error in other threads but I have never find a solution....


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145706#4145706

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145706



More information about the jboss-user mailing list