2 Replies Latest reply on Mar 21, 2007 12:09 PM by Gregory Auvray

    Failure on queue example running

    Gregory Auvray Newbie

      I've installed JbossAppserver version 4.2.0.CR1 and I've installed jboss-messaging-1.0.1.SP4.

      I wanted to test example to see if it was ok.
      So I tried QUEUE example but I have an exception :
      [root@xxx 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.NoInitialContextException: Can't find property: java.naming.factory.initial
      [java] at javax.naming.spi.NamingManager.getInitialContext(java.util.Hashtable) (/lib/ssa/libgcj.so.4.0.0)
      [java] at javax.naming.InitialContext.getDefaultInitCtx() (/lib/ssa/libgcj.so.4.0.0)
      [java] at javax.naming.InitialContext.getURLOrDefaultInitCtx(java.lang.String) (/lib/ssa/libgcj.so.4.0.0)
      [java] at javax.naming.InitialContext.lookup(java.lang.String) (/lib/ssa/libgcj.so.4.0.0)
      [java] at org.jboss.example.jms.common.Util.doesDestinationExist(java.lang.String) (Unknown Source)
      [java] at org.jboss.example.jms.common.ExampleSupport.setup() (Unknown Source)
      [java] at org.jboss.example.jms.common.ExampleSupport.run() (Unknown Source)
      [java] at org.jboss.example.jms.queue.QueueExample.main(java.lang.String[]) (Unknown Source)

      [java] #####################
      [java] ### FAILURE! ###
      [java] #####################

      BUILD FAILED
      file:/opt/jboss/jboss-messaging-1.0.1.SP4/examples/queue/build.xml:79: Java returned: 1

      Total time: 1 second


      Have you got an idea for solving this problem?
      Thanks