1 Reply Latest reply on Dec 1, 2010 11:57 AM by peterj

    HELP! Jboss and JBoss messaging problem

    mwhite808

      Hi All,

       

      I'm a newbie and it will show, but please help me! I am trying to setup Jboss messaging and Jboss and run the queue example. here is my environment:

       

      -Windows XP

      -JBoss 4.2.3.GA (jdk6 version)

      -JBoss messaging 1.4.5.GA

       

      Here is how i setup things

       

      1. Unzip jboss-4.2.3.GA-jdk6.zip to C:\
      2. Unzip jboss-messaging-1.4.5.GA.zip to C:\
      3. Set JBOSS_HOME environment variable to C:\jboss-4.2.3.GA
      4. using the command line, changed directory to C:\jboss-messaging-1.4.5.GA\util
      5. executed: ant -f release-admin.xml
      6. per the documentation (http://docs.jboss.org/jbossmessaging/docs/guide-1.0.1.SP5/html/installation.html) it should have setup my messaging for me and indeed it did as i now see a messaging directory in C:\jboss-4.2.3.GA\server
      7. from command line, change directory to C:\jboss-4.2.3.GA\bin
      8. started the server using: run.bat -c messaging
      9. server started up fine
      10. opened new command window and changed directory to C:\jboss-messaging-1.4.5.GA\examples\queue
      11. exectued command: ant
      12. Queue example failed with the following error. I do not know why and how to fix it so i can write my own code to use JMS. Can anyone please help me?!?!

       

      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] Queue /queue/testQueue exists
           [java] Queue /queue/testQueue exists
           [java] org.jboss.jms.exception.MessagingJMSException: Failed to invoke
           [java]     at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)
           [java]     at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:198)
           [java]     at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
           [java]     at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:80)
           [java]     at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
           [java]     at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
           [java]     at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
           [java]     at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
           [java]     at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
           [java]     at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
           [java]     at org.jboss.example.jms.queue.QueueExample.example(QueueExample.java:73)
           [java]     at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:148)
           [java]     at org.jboss.example.jms.queue.QueueExample.main(QueueExample.java:135)
           [java] Caused by: java.lang.NoSuchMethodError: org.jboss.remoting.Client.connect(Lorg/jboss/remoting/ConnectionListener;Ljava/util/Map;)V
           [java]     at org.jboss.jms.client.remoting.JMSRemotingConnection$1.run(JMSRemotingConnection.java:374)
           [java]     at java.security.AccessController.doPrivileged(Native Method)
           [java]     at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:368)
           [java]     at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:165)
           [java]     ... 11 more
           [java]
           [java] #####################
           [java] ###    FAILURE!   ###
           [java] #####################

           [java]
           [java] Please verify if you have access to the server. If you are using JBossEAP maybe you don't have security access

       

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

       

      Total time: 1 second