-
1. Re: org.jboss.mq.SpyJMSException: Cannot authenticate user
ashish.abrol Jun 12, 2008 11:44 AM (in response to ashish.abrol)Hi
I am trying to connect to JBoss MQ which is running on a remote unix box.
I am simulating a client from a windows machine. I am unable to connect because of a authentication issue. I am not exactly sure what is it that causes it. I am a newbie. Please see the exception below. I would much appreciate if somebody could solve my problem.
Note: I have tried "telnet 1099" and i do get a response back. So I assume there isnt a firewall problem.
thanks
Ashish
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection refused: connect)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:51)
at org.jboss.mq.Connection.authenticate(Connection.java:1118)
at org.jboss.mq.Connection.(Connection.java:267)
at org.jboss.mq.Connection.(Connection.java:338)
at org.jboss.mq.SpyConnection.(SpyConnection.java:68)
at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)
at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:124)
at JbossSample.runExample(JbossSample.java:104)
at JbossSample.main(JbossSample.java:159)
Caused by: java.net.ConnectException: Connection refused: connect -
2. Re: org.jboss.mq.SpyJMSException: Cannot authenticate user
vandana_awat May 8, 2009 5:27 AM (in response to ashish.abrol)Hi i am facing the same problem.
Can u let me know what solution you found ?
Also i get an exception authenticatio failure but still the message is getting posted on the queue...
i am not able to figure out why is it happenging like that -
3. Re: org.jboss.mq.SpyJMSException: Cannot authenticate user
hettimora Jun 7, 2009 11:30 AM (in response to ashish.abrol)I had the same problem but i was able to resolve it buy following the instruction in http://www.agapex.com/michaelquattlebaum/?p=41#comment-1037 In addition to that you need to add -Djava.rmi.server.hostname="ip of the external host" to user jboss run.bat. Other things is port 1099 not enough. you need to open 1099, 1098 and 8093
hope this will help to resolve the issue