From: Tim A. <tm...@ne...> - 2004-08-23 06:23:06
|
The server is failing when trying to register itself with the RMI registry. It looks like you've configured the server to use an external RMI registry, as opposed to the embedded one. For this to work, the external RMI registry needs to be running before you start the OpenJMS server. If the above doesn't help, post your openjms.xml file. -Tim -----Original Message----- From: ope...@li... [mailto:ope...@li...]On Behalf Of grace ge Sent: Wednesday, 18 August 2004 10:15 AM To: ope...@li... Subject: [openjms-user] RMI - .ConnectException: Connection refused Hi expert, I received an exception when I tried to register my Server(RMI), Can anyone help me figure out how to fix this problem org.exolab.jms.server.ServerException: java.rmi.ConnectException: Connection refused to host: 172.20.25.51; nested exception is: java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Naming.java:160) at org.exolab.jms.server.rmi.RmiJmsServer.init(RmiJmsServer.java:121) at org.exolab.jms.server.JmsServer.initConnector(JmsServer.java:367) at org.exolab.jms.server.JmsServer.initConnectors(JmsServer.java:321) at org.exolab.jms.server.JmsServer.init(JmsServer.java:197) at org.exolab.jms.server.JmsServer.main(JmsServer.java:229) Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.<init>(Socket.java:309) at java.net.Socket.<init>(Socket.java:124) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF actory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF actory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562) ... 10 more ---------------------------------------------------------------------------- -- Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. |