[jboss-user] [JBoss Messaging] - Failure on queue example running

gregnewjboss do-not-reply at jboss.com
Wed Mar 21 05:22:26 EDT 2007


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 at 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

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

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



More information about the jboss-user mailing list