10 Replies Latest reply on Mar 8, 2012 8:56 AM by matthiasr

    JBOSS ESB HelloWorld QuickStart Sample Issue

    jass

      Hello All,

       

      I am fairly new to JBOSS And JBOSS-ESB.

       

      I downloaded and deployed JBOSS-AS and JBOSS-ESB seperately as well as JBOSS-ESB-SERVER, Both ways I am unable to run the 1st QuikStart Hello-World sample (I am using Windows-XP).

       

      When I use JBOSS-ESB-SERVER (Version-4.9)

      ===================================

       

      When running "ant deploy", following is the error thrown in the Server Console; So, I am unable to move to "ant runtest".

       

       

      17:23:48,765 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8

      080

      17:23:48,796 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

      17:23:48,859 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBos

      s_4_2_3_GA date=200807181417)] Started in 2m:28s:672ms

      17:26:34,125 INFO  [QueueService] Queue[/queue/quickstart_helloworld_Request_gw]

      stopped

      17:26:34,125 INFO  [QueueService] Queue[/queue/quickstart_helloworld_Request_esb

      ] stopped

      17:26:34,218 INFO  [JBoss4ESBDeployer] create esb service, Quickstart_helloworld

      .esb

      17:26:34,234 INFO  [QueueService] Queue[/queue/quickstart_helloworld_Request_esb

      ] started, fullSize=200000, pageSize=2000, downCacheSize=2000

      17:26:34,234 INFO  [QueueService] Queue[/queue/quickstart_helloworld_Request_gw]

      started, fullSize=200000, pageSize=2000, downCacheSize=2000

      17:26:34,250 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

       

      --- MBeans waiting for other MBeans ---

      ObjectName: jboss.esb:service=JuddiRMI

        State: FAILED

        Reason: java.lang.ExceptionInInitializerError

        I Depend On:

          jboss.esb:service=JUDDIDatabaseInitializer

          jboss.esb:service=PropertyService

        Depends On Me:

          jboss.esb:service=JuddiClient

       

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---

      ObjectName: jboss.esb:service=JuddiRMI

        State: FAILED

        Reason: java.lang.ExceptionInInitializerError

        I Depend On:

          jboss.esb:service=JUDDIDatabaseInitializer

          jboss.esb:service=PropertyService

        Depends On Me:

          jboss.esb:service=JuddiClient

       

      When running JBOSS-AS (Version 6.0.0, Esb-Version - JBOSS-ESB-4.9)

      ======================================================

       

      I am able successfully deplot the service using "ant deploy", but when running "ant runtest" on the simple HelooWorld is fails with the following Errors on the Windows Console -

       

      compile:

          [javac] C:\JBoss-ESB\jbossesb-4.9\samples\quickstarts\conf\base-build.xml:43

      5: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=la

      st; set to false for repeatable builds

          [javac] C:\JBoss-ESB\jbossesb-4.9\samples\quickstarts\conf\base-build.xml:44

      0: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=la

      st; set to false for repeatable builds

       

      runtest:

           [echo] Runs Test JMS Sender

           [java] log4j:ERROR Could not instantiate class [org.jboss.logging.util.Only

      OnceErrorHandler].

           [java] java.lang.ClassNotFoundException: org.jboss.logging.util.OnlyOnceErr

      orHandler

           [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

           [java]     at java.security.AccessController.doPrivileged(Native Method)

           [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

           [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

       

      I feel there are some serious config issues, but I am fairly new to ESB and JBOSS config, Can some body provide expert comments?

       

      Thanks.

        • 1. JBOSS ESB HelloWorld QuickStart Sample Issue
          everjava

          I think you must config files about juddi

           

          in your jboss .../server/default/deploy there's jbossesb-registry.sar where you find: juddi-ds.xml, persistence.xml ...

          you need: change datasource, change dialect, create a juddi database, and a bit more .... you can find out more about in esb documentation

          1 of 1 people found this helpful
          • 2. JBOSS ESB HelloWorld QuickStart Sample Issue
            jass

            Thanks - and can you also refer to the Right document to set JUDDI? As the Beginer's Guide and ESB Admin Guide both don;t have any reference to set-up of JUDDI/Persistence Config.

            • 4. JBOSS ESB HelloWorld QuickStart Sample Issue
              tfennelly

              What version of the AS are you trying to run the ESB on?  It doesn't run on AS6.  When running on AS5, you first need to install the ESB into the AS.  See the getting started guide.

              • 5. JBOSS ESB HelloWorld QuickStart Sample Issue
                jass

                Hi Tom,

                 

                I have tried this, I am successful in starting JBOSS 5.1.0.GA.

                 

                but  when I run ant deploy from ESB 4.9, it produces errors such as

                 

                 

                18:59:34,578 INFO  [EsbDeployment] Starting ESB Deployment 'jbrules.esb'

                18:59:34,640 INFO  [EsbDeployment] Starting ESB Deployment 'slsb.esb'

                18:59:34,718 INFO  [EsbDeployment] Starting ESB Deployment 'smooks.esb'

                18:59:35,515 INFO  [EsbDeployment] Starting ESB Deployment 'soap.esb'

                18:59:39,125 INFO  [EsbDeployment] Starting ESB Deployment 'spring.esb'

                18:59:39,171 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of

                incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                 

                DEPLOYMENTS MISSING DEPENDENCIES:

                  Deployment "jboss.esb.vfszip:/C:/JBoss/jboss-5.1.0.GA/server/default/deploy/Qu

                ickstart_helloworld.esb/" is missing the following dependencies:

                    Dependency "<UNKNOWN jboss.esb.vfszip:/C:/JBoss/jboss-5.1.0.GA/server/defaul

                t/deploy/Quickstart_helloworld.esb/>" (should be in state "PreInstall", but is a

                ctually in state "** UNRESOLVED Demands 'org.hornetq:module=JMS,name="quickstart

                _helloworld_Request_esb",type=Queue' **")

                    Dependency "<UNKNOWN jboss.esb.vfszip:/C:/JBoss/jboss-5.1.0.GA/server/defaul

                t/deploy/Quickstart_helloworld.esb/>" (should be in state "PreInstall", but is a

                ctually in state "** UNRESOLVED Demands 'org.hornetq:module=JMS,name="quickstart

                _helloworld_Request_gw",type=Queue' **")

                 

                DEPLOYMENTS IN ERROR:

                  Deployment "<UNKNOWN jboss.esb.vfszip:/C:/JBoss/jboss-5.1.0.GA/server/default/

                deploy/Quickstart_helloworld.esb/>" is in error due to the following reason(s):

                ** UNRESOLVED Demands 'org.hornetq:module=JMS,name="quickstart_helloworld_Reques

                t_esb",type=Queue' **, ** UNRESOLVED Demands 'org.hornetq:module=JMS,name="quick

                start_helloworld_Request_gw",type=Queue' **

                 

                 

                 

                I am stuck with these errors, I have done some googling on HornetQ and its deployment, but the bit I am unable to understand is what if I don't want to use HornetQ, I want to use JBOSS Messaging, Can't I just configure JBOSS Messaging and move forward with my simple Quickstart running???

                • 6. JBOSS ESB HelloWorld QuickStart Sample Issue
                  tcunning

                  I'm unsure how you got this error, I don't see anything similar when I deploy ESB to 5.1.0.GA.     Maybe unzip a fresh ESB-4.9 distribution, and try installing to a fresh 5.1.0.GA using the steps in the Getting Started guide?

                  • 7. Re: JBOSS ESB HelloWorld QuickStart Sample Issue
                    jass

                    Ok, I will try a fresh installation.

                     

                    I was trying the simple QuickStart "Hello World". I followed the complete Wiki Page as guided by Daniel to change configuration to HornetQ, without HornetQ, there were some other issues.

                     

                    I have the Corporate access to Red Hat Project as well - If I need to try the same (Red Hat JBoss ESB), what should I download - JBOSs SOA Suite?

                    • 8. JBOSS ESB HelloWorld QuickStart Sample Issue
                      tcunning

                      Yes - download SOA 5.1.0 GA.

                      • 9. Re: JBOSS ESB HelloWorld QuickStart Sample Issue
                        svenmalvik

                        I made a very simple Quickstart Demo where a GET request gets routed through a JBoss ESB to a Seam WebApp.

                        http://youtu.be/D5ubtyoc-hs

                        • 10. Re: JBOSS ESB HelloWorld QuickStart Sample Issue
                          matthiasr

                          jass,

                           

                          I am also quite new to JBOSS ESB got exactly the same error message already during startup of JBOSS ESB (and also when deploying helloworld with ant).

                           

                          solution in my case was rather simple: i had a blank in my JBOSS dir name ("../JBOSS ESB/..."). ;-)

                          after removing the blank everything worked fine.

                           

                          dunno if this is any help for u...

                           

                          br,

                          matthias