0 Replies Latest reply on Apr 29, 2002 10:17 PM by Rick Okin

    Problem with JBOSSMQ Example

    Rick Okin Newbie

      Hello,

      I am trying to run the first example in the purchased docs in chapter 4. I am running everything on one machine running windows 2000 and JDK1.3. I get the following:

      C:\jboss_doc\JBossBook-2.4.x\examples>ant -Dchap=4 -Dex=1 run-example
      Buildfile: build.xml

      validate:

      fail_if_not_valid:

      init:
      [echo] Using jboss.dist=C:/JBoss244/jboss

      compile:
      [javac] Compiling 1 source file to C:\jboss_doc\JBossBook-2.4.x\examples\bui
      ld\classes

      run-example:

      run-example1:
      [echo] classpath=C:\JBoss244\jboss\client\jboss-j2ee.jar;C:\JBoss244\jboss\
      client\jaas.jar;C:\JBoss244\jboss\client\jbossmq-client.jar;C:\JBoss244\jboss\cl
      ient\jbosssx-client.jar;C:\JBoss244\jboss\client\jboss-client.jar;C:\JBoss244\jb
      oss\client\jnp-client.jar;C:\JBoss244\jboss\client\log4j.jar;C:\JBoss244\jboss\c
      lient\oswego-concurrent.jar;C:\jboss_doc\JBossBook-2.4.x\examples\build\classes;
      C:\jboss_doc\JBossBook-2.4.x\examples\src\resources
      [java] Begin sendRecvAsync
      [java] javax.naming.ServiceUnavailableException: Connection refused: connec
      t. Root exception is java.net.ConnectException: Connection refused: connect
      [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
      [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:355)
      [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav
      a:142)
      [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:129)
      [java] at java.net.Socket.(Socket.java:273)
      [java] at java.net.Socket.(Socket.java:100)
      [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java
      :102)
      [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
      776)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:34
      0)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:33
      3)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
      [java] at org.jboss.chap4.ex1.SendRecvClient.setupPTP(SendRecvClient.ja
      va:54)
      [java] at org.jboss.chap4.ex1.SendRecvClient.sendRecvAsync(SendRecvClie
      nt.java:68)
      [java] at org.jboss.chap4.ex1.SendRecvClient.main(SendRecvClient.java:9
      2)
      [java] Exception in thread "main"
      [java] Java Result: 1

      BUILD SUCCESSFUL

      Total time: 3 seconds
      C:\jboss_doc\JBossBook-2.4.x\examples>

      Any help is appreciated.

      Rick