[jboss-user] [JBoss Messaging Users] - Problems with examples.

sacauskis do-not-reply at jboss.com
Fri Nov 20 13:36:18 EST 2009


I'm running jboss 4.2.3GA on windows XP  I'm running java jdk1.6.0_11  and I've installed jboss-messaging-1.4.5.GA and followed install instructions here:http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.5.GA/html/installation.html#install.extra-steps.

I've had to change my org.jboss.services.binding.ServiceBindingManager in jboss-services.xml to the set ports-01 because of a port conflict on my machine.  I'm running the queue validation section of the above document Section 4.3 to validate my installation.   When I run it I get the following stack trace:


F:\jboss-messaging-1.4.5.GA\examples\queue>ant
Buildfile: build.xml

identify:
     [echo] ####################################################################
#######
     [echo] #                       Running the QUEUE example
      #
     [echo] ####################################################################
#######
     [echo] The queue:      testQueue
     [echo] The client jar: ../..//jboss-messaging-client.jar

sanity-check:

init:

compile:

run:
     [java] javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.
CommunicationException: Receive timed out [Root exception is java.net.SocketTime outException: Receive timed out] [Root exception is javax.naming.CommunicationEx
ception: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
     [java]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
1562)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:63
4)
     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62
7)
     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
     [java]     at org.jboss.example.jms.common.Util.doesDestinationExist(Util.j
ava:55)
     [java]     at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupp
ort.java:236)
     [java]     at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupp
ort.java:197)
     [java]     at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
t.java:147)
     [java]     at org.jboss.example.jms.queue.QueueExample.main(QueueExample.ja
va:134)
     [java] Caused by: javax.naming.CommunicationException: Failed to connect to
 server localhost:1099 [Root exception is javax.naming.ServiceUnavailableExcepti
on: Failed to connect to server localhost:1099 [Root exception is java.net.Conne
ctException: Connection refused: connect]]
     [java]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
:274)
     [java]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
1533)
     [java]     ... 8 more
     [java] Caused by: javax.naming.ServiceUnavailableException: Failed to conne
ct to server localhost:1099 [Root exception is java.net.ConnectException: Connec
tion refused: connect]
     [java]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
:248)
     [java]     ... 9 more
     [java] Caused by: java.net.ConnectException: Connection refused: connect
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
     [java]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
a:195)
     [java]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
     [java]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     [java]     at java.net.Socket.connect(Socket.java:519)
     [java]     at java.net.Socket.connect(Socket.java:469)
     [java]     at java.net.Socket.(Socket.java:366)
     [java]     at java.net.Socket.(Socket.java:267)
     [java]
     [java] Please verify if you have access to the server. If you are using JBo
ssEAP maybe you don't have security access
     [java]     at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke
tFactory.java:84)
     [java]     at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke
tFactory.java:77)
     [java]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
:244)
     [java]     ... 9 more
     [java]
     [java] #####################
     [java] ###    FAILURE!   ###
     [java] #####################

BUILD FAILED
F:\jboss-messaging-1.4.5.GA\examples\queue\build.xml:79: Java returned: 1


How do I change the port it is looking from 1099 to the one that ports1 uses 1199?

Thanks for the help.

Mike

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

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



More information about the jboss-user mailing list