[jboss-user] [JBoss Messaging] - Re: JOBSS Messaging POC

ssjboss do-not-reply at jboss.com
Fri Apr 25 01:30:44 EDT 2008


F:\jms\jboss messaging\jboss-messaging-1.4.0.SP3\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:
  |     [javac] Compiling 1 source file to F:\jms\jboss messaging\jboss-messaging-1.
  | 4.0.SP3\examples\queue\output\classes
  | 
  | run:
  |      [java] Queue /queue/testQueue exists
  |      [java] The message was successfully sent to the testQueue queue
  |      [java] Received message: Hello!
  |      [java] The example connected to JBoss Messaging version 1.4.0.SP3 (1.4)
  |      [java]
  |      [java]
  |      [java] #####################
  |      [java] ###    SUCCESS!   ###
  |      [java] #####################
  | 
  | BUILD SUCCESSFUL
  | Total time: 4 seconds
  | F:\jms\jboss messaging\jboss-messaging-1.4.0.SP3\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: 10.12.170.180:1099 and discovery failed with error: javax.nam
  | ing.CommunicationException: Receive timed out [Root exception is java.net.Socket
  | TimeoutException: Receive timed out] [Root exception is javax.naming.Communicati
  | onException: Failed to connect to server 10.12.170.180:1099 [Root exception is j
  | avax.naming.ServiceUnavailableException: Failed to connect to server 10.12.170.1
  | 80:1099 [Root exception is java.net.ConnectException: Connection refused: connec
  | t]]]
  |      [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:351)
  |      [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:214)
  |      [java]     at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupp
  | ort.java:194)
  |      [java]     at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
  | t.java:146)
  |      [java]     at org.jboss.example.jms.queue.QueueExample.main(QueueExample.ja
  | va:135)
  |      [java] Caused by: javax.naming.CommunicationException: Failed to connect to
  |  server 10.12.170.180:1099 [Root exception is javax.naming.ServiceUnavailableExc
  | eption: Failed to connect to server 10.12.170.180:1099 [Root exception is java.n
  | et.ConnectException: 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 10.12.170.180:1099 [Root exception is java.net.ConnectException: Co
  | nnection 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:364)
  |      [java]     at java.net.Socket.connect(Socket.java:507)
  |      [java]     at java.net.Socket.connect(Socket.java:457)
  |      [java]     at java.net.Socket.<init>(Socket.java:365)
  |      [java]     at java.net.Socket.<init>(Socket.java:265)
  |      [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:\jms\jboss messaging\jboss-messaging-1.4.0.SP3\examples\queue\build.xml:81: Ja
  | va returned: 1
  | 
  | Total time: 8 seconds
  | 
  | 
  | i am getting above error, please help me
  | 
  | --------
  | -SS

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

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



More information about the jboss-user mailing list