[jboss-user] [JBoss Messaging] - unable to connect to JBM server using SSH port forwarding
bodrin
do-not-reply at jboss.com
Fri Feb 20 11:13:57 EST 2009
JBM.1.4.0.SP3 \ jboss-4.2.2.GA
I have JBM running on host jbm. I have a standalone JBM client (consumer/producer) running on another host (say localhost) which does not see host jbm. I have ssh tunnel that port forwards localhost:1200 -> jbm:1200.
The configuration of my standalone app is:
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=jboss.naming:org.jnp.interfaces
| jnp.disableDiscovery=true
| java.naming.provider.url=localhost:1200
|
When I try to connect it to JBM server I got :
| javax.naming.CommunicationException [Root exception is java.rmi.RemoteException: Service unavailable.; nested exception is:
| java.rmi.ConnectException: Connection refused to host: jbm; nested exception is:
| java.net.ConnectException: Connection refused: connect]
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:392)
| at com.sep.messagebus.impl.JMSLocatorImpl.getConnectionFactory(JMSLocatorImpl.java:63)
| at com.sep.messagebus.impl.JMSLocatorImpl.getQueueConnectionFactory(JMSLocatorImpl.java:73)
| at com.sep.messagebus.impl.JMSLocatorImpl.getQueueConnection(JMSLocatorImpl.java:86)
| at com.sep.messagebus.helpers.JMSLocatorWrapper.getQueueConnection(JMSLocatorWrapper.java:66)
| at com.sep.messagebus.test.process.profile.activation.QueueViewer.setupJmsResources(QueueViewer.java:86)
| at com.sep.messagebus.helpers.JMSSetupDaemon.setupJmsResources(JMSSetupDaemon.java:117)
|
| Caused by: java.rmi.RemoteException: Service unavailable.; nested exception is:
| java.rmi.ConnectException: Connection refused to host: jbm; nested exception is:
| java.net.ConnectException: Connection refused: connect
| at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:261)
| at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:321)
| at $Proxy0.lookup(Unknown Source)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
| ... 14 more
| Caused by: java.rmi.ConnectException: Connection refused to host: jbm; nested exception is:
| java.net.ConnectException: Connection refused: connect
| 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.jboss.ha.framework.server.HARMIServerImpl_Stub.invoke(Unknown Source)
| at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:219)
| ... 17 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:519)
| at java.net.Socket.connect(Socket.java:469)
| at java.net.Socket.<init>(Socket.java:366)
| at java.net.Socket.<init>(Socket.java:180)
| 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)
| ... 22 more
|
So, I have configured that my server is on localhost:1200, but it tries to connect to jbm host?
Can I overcome this somehow?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211874#4211874
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211874
More information about the jboss-user
mailing list