1 2 Previous Next 24 Replies Latest reply on Jul 6, 2007 11:52 AM by kconner

    Problem with quickstart helloworld: Failed to find action cl

      Hi,

      I'm trying out JBossESB - downloaded the trunk from SVN on Tuesday. I'm deploying into a 4.2.0.GA JBoss app server with JBossMessaging 1.3.0 installed into it. I built JBossESB from the SVN repository via "ant dist" in the product directory.

      When I try to deploy the helloworld test, I get the following abbreviated stack trace. Examining the ESB file, MyJMSListenerAction is present. Any ideas on what I should look at?



      13:29:59,696 WARN [ServiceController] Problem starting service jboss.esb:deployment=Quickstart_helloworld.esb
      java.lang.RuntimeException: java.lang.RuntimeException: Failed to find action class 'org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction'.
      at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:119)
      at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployment.startService(JBoss4ESBDeployment.java:78)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      .......


        • 1. Re: Problem with quickstart helloworld: Failed to find actio
          burrsutter

          Did you run "ant deploy" in helloworld after tweaking the quickstart.properties file in the conf folder?

          You can open the .esb archive via a tool like WinZip, Jar or WinRAR and look inside it to see if the MyJMSListenerAction.class is in fact in the archive.

          Burr

          • 2. Re: Problem with quickstart helloworld: Failed to find actio

             

            "burrsutter" wrote:
            Did you run "ant deploy" in helloworld after tweaking the quickstart.properties file in the conf folder?


            I'm using a SVN build and it uses the defaults set in install/deployment.properties, and I set those correctly - it deploys to the correct JBoss instance.

            "burrsutter" wrote:

            You can open the .esb archive via a tool like WinZip, Jar or WinRAR and look inside it to see if the MyJMSListenerAction.class is in fact in the archive.

            Burr



            Yup, MyJMSListenerAction is present in the .esb archive.



            • 3. Re: Problem with quickstart helloworld: Failed to find actio
              burrsutter

              I've not tried to a 4.2.0 AS instance personally - only 4.0.5 with EJB3 profile.

              I'll give it a try.

              Burr

              • 4. Re: Problem with quickstart helloworld: Failed to find actio
                burrsutter

                And did you say that you performed an "ant" from the
                build\jbossesb\install directory as well?

                The result is a bunch of files/folders that end in .esb (e.g. smooks.esb) in your deploy directory.

                You may need to tweak deployment.properties in the "install" folder as well to point to the your 4.2 AS installation.

                I just tested against AS 4.2 and it ran fine.

                Burr

                • 5. Re: Problem with quickstart helloworld: Failed to find actio

                   

                  "burrsutter" wrote:
                  I've not tried to a 4.2.0 AS instance personally - only 4.0.5 with EJB3 profile.

                  I'll give it a try.

                  Burr



                  Thanks. What I did was:

                  1. Downloaded and unpacked AS 4.2.0.GA
                  2. Downloaded and unpacked JBossMessaging 1.3.0.GA
                  3. Downloaded from SVN the current trunk of JBossESB (as of Tuesday) and built it via "ant install".
                  4. in JBossMessaging\util, ran ant -f release-admin.xml to install JBossMessaging 1.3.0 GA in 4.2.0.GA AS. Then tested it by starting the server and running some of the examples. They worked. Shut down the server.
                  5. In jbossesb\product\build\jbossesb\install modified deployment.properties to refer to the 4.2.0.GA AS installed in step 1 and the configuration created by step 4 (i.e., the "messaging" config).
                  6. In the same directory ran "ant deploy"
                  7. Started the app. server. Everything deployed happily and started up.
                  8. In jbossesb\samples\quickstarts\helloworld, ran "ant deploy".

                  This resulted in the error I posted earlier. Hope the detailed steps help. Its entirely possible I'm missing something because JBossESB is new to me ...


                  • 6. Re: Problem with quickstart helloworld: Failed to find actio
                    kconner

                    Can you follow the instructions in the following posting? This certainly worked a few weeks ago.

                    http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4059129#4059129

                    • 7. Re: Problem with quickstart helloworld: Failed to find actio
                      burrsutter

                      I think I basically followed all of your steps and my Helloworld works fine.

                      Perhaps the only difference insteps are that I ran "ant deploy" in the downloaded_spot\product\samples\quickstarts\helloworld directory

                      after first modifying the quickstart.properties file to point to my new AS 4.2 with JBM 1.3 installed in a "messaging" profile instead of default.

                      downloaded_spot\product\samples\quickstarts\conf\quickstart.properties

                      Note: the initial file is called quickstart.properties-example.

                      Normally I test against 4.0.5 with EJB3 profile as well as the standalone ESB Server. However, we'll be recommending AS 4.2 + JBoss Messaging 1.x in the near future anyway. So your attempt is very valid, perhaps we've just poorly documented the process.

                      • 8. Re: Problem with quickstart helloworld: Failed to find actio
                        burrsutter

                        "3. Downloaded from SVN the current trunk of JBossESB (as of Tuesday) and built it via "ant install". "

                        should have been "ant dist" to get the "build" folder under the "product" folder.

                        If you pull from SVN your directory structure should look something like:
                        \checked_out_to_folder\product\build - after "ant dist"

                        • 9. Re: Problem with quickstart helloworld: Failed to find actio

                           

                          "Kevin.Conner@jboss.com" wrote:
                          Can you follow the instructions in the following posting? This certainly worked a few weeks ago.

                          <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4059129#4059129">http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4059129#4059129</a>



                          Kevin,

                          I just followed those instructions again - reinstalled 4.2.0.GA AS, installed messaging, built JBossESB again (Java 1.5.0_11) and got exactly the same error:

                          14:53:08,167 WARN [ServiceController] Problem starting service jboss.esb:deploy
                          ment=Quickstart_helloworld.esb
                          java.lang.RuntimeException: java.lang.RuntimeException: Failed to find action class 'org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction'.


                          About the only thing I haven't tried is refreshing my SVN trunk. I'll give that a whirl and see if it makes any difference.


                          • 10. Re: Problem with quickstart helloworld: Failed to find actio

                             

                            "burrsutter" wrote:
                            I think I basically followed all of your steps and my Helloworld works fine.

                            Perhaps the only difference insteps are that I ran "ant deploy" in the downloaded_spot\product\samples\quickstarts\helloworld directory


                            I tried that as well - it basically creates a complete distribution image, and then I used that to try everything in it, with the same results. Note that I can start up the app server and the various .esb files are in the "messaging" configuration of my 4.2.0.GA AS installation as in:

                            Directory of c:\java\jboss-4.2.0.GA\server\messaging\deploy

                            07/05/2007 03:15 PM jbossesb.esb
                            07/05/2007 03:15 PM jbpm.esb
                            07/05/2007 03:15 PM jbrules.esb
                            07/05/2007 03:15 PM smooks.esb
                            07/05/2007 03:15 PM soap.esb
                            07/05/2007 03:15 PM spring.esb

                            15:15:50,683 INFO [JBoss4ESBDeployer] create esb service, jbpm.esb
                            15:15:52,823 INFO [JBoss4ESBDeployer] create esb service, jbrules.esb
                            15:15:53,073 INFO [JBoss4ESBDeployer] create esb service, smooks.esb

                            "burrsutter" wrote:

                            after first modifying the quickstart.properties file to point to my new AS 4.2 with JBM 1.3 installed in a "messaging" profile instead of default.

                            downloaded_spot\product\samples\quickstarts\conf\quickstart.properties

                            Note: the initial file is called quickstart.properties-example.


                            Yup, tried that as well, still no joy. The fact that it copies it to the right server and that it attempts to start the esb archive indicates to me that those things appear to be set up correctly. It is somehow failing to start the esb archive. The class that it is claiming to not find is also in the archive:

                            240 Tue Jul 03 14:59:32 EDT 2007 org/jboss/soa/esb/samples/quickstart/helloworld/MyJMSListenerAction.class


                            "burrsutter" wrote:

                            Normally I test against 4.0.5 with EJB3 profile as well as the standalone ESB Server. However, we'll be recommending AS 4.2 + JBoss Messaging 1.x in the near future anyway. So your attempt is very valid, perhaps we've just poorly documented the process.



                            I dunno. The installation of messaging is trivial. The build of JBossESB from SVN is a little ambiguous but not too onerous. Sadly both things I've tried seem to yield the same result, even with a SVN update that I've just done.


                            • 11. Re: Problem with quickstart helloworld: Failed to find actio
                              kconner

                              Andy, I have just tried everything from a clean install and it works as expected.

                              Can you email me your server.log and boot.log files?

                              • 12. Re: Problem with quickstart helloworld: Failed to find actio
                                kconner

                                 

                                "andycooper" wrote:
                                The build of JBossESB from SVN is a little ambiguous but not too onerous.

                                Can you explain this a bit further?

                                At the moment all that is necessary is to edit the install/deployment.properties file and execute 'ant deploy' from the product directory.

                                Thanks

                                • 13. Re: Problem with quickstart helloworld: Failed to find actio

                                   

                                  "Kevin.Conner@jboss.com" wrote:
                                  Andy, I have just tried everything from a clean install and it works as expected.


                                  Its highly likely I'm screwing something up, but unfortunately I just can't pinpoint it :-(.


                                  "Kevin.Conner@jboss.com" wrote:

                                  Can you email me your server.log and boot.log files?


                                  Done. Just sent them to you. Also added Quickstart_helloworld.esb.

                                  Thanks for all the help and rapid responses!

                                  --Andy


                                  • 14. Re: Problem with quickstart helloworld: Failed to find actio

                                     

                                    "Kevin.Conner@jboss.com" wrote:
                                    "andycooper" wrote:
                                    The build of JBossESB from SVN is a little ambiguous but not too onerous.

                                    Can you explain this a bit further?

                                    At the moment all that is necessary is to edit the install/deployment.properties file and execute 'ant deploy' from the product directory.

                                    Thanks


                                    Sure; I think it may be more my confusion than anything, but here goes. The document "Build.txt" in jbossesb/product says to run "ant install", but I've seen on the forums that I should run "ant deploy". I've also seen "ant dist" mentioned. From a *very* brief look at the build scripts, it seems that these all do mostly the same. You may want to add something about this somewhere.

                                    The big thing for me is what directory to use - do I use the stuff in the "build/jbossesb/install" directory off of the "product" directory, or do I use the stuff in the "install" directory off of the "product directory? As near as I can tell, they're pretty much equivalent.


                                    1 2 Previous Next