-
15. Re: Problem with quickstart helloworld: Failed to find actio
burrsutter Jul 5, 2007 4:00 PM (in response to andycooper)My personal process is (old habits):
- SVN check out
- ant dist (in the product directory)
- cd build\jbossesb\install
- modify deployment.properties (or copy the example) to put to my AS and profile (\jboss\AS4.2 and "default" or "messaging")
- ant install
- start that AS instance to see if it is happy
- cd product\samples\quickstarts\conf
- modify quickstart.properties
- cd product\samples\quickstarts\helloworld
- ant deploy (look for it to hot deploy on server console)
- ant runtest (look for Hello World in the server console)
Another helloworld test is:
- ant undeploy (to remove that .esb archive from the deploy directory)
- ant run
- open another command window
- ant runtest (you should see the Hello World pop up in the first command window, not on the server console). This is an example of the "bootstrapper" deployment model.
It should be noted that after "ant dist" that you'll find "jbossesb-server-4.2MR2" in the build directory and that is the ESB Server which will run almost all the examples. It has built in JBoss Messaging. Go to its bin directory and try "run".
Try hello world against this server instance as well.
Burr -
16. Re: Problem with quickstart helloworld: Failed to find actio
burrsutter Jul 5, 2007 4:02 PM (in response to andycooper)I messed up slightly:
My personal process is (old habits):
- SVN check out
- ant dist (in the product directory)
- cd build\jbossesb\install
- modify deployment.properties (or copy the example) to put to my AS and profile (\jboss\AS4.2 and "default" or "messaging")
- *ant install* should be "ant" with no target name
- start that AS instance to see if it is happy
- cd product\samples\quickstarts\conf
- modify quickstart.properties
- cd product\samples\quickstarts\helloworld
- ant deploy (look for it to hot deploy on server console)
- ant runtest (look for Hello World in the server console)
Another helloworld test is:
- ant undeploy (to remove that .esb archive from the deploy directory)
- ant run
- open another command window
- ant runtest (you should see the Hello World pop up in the first command window, not on the server console). This is an example of the "bootstrapper" deployment model.
It should be noted that after "ant dist" that you'll find "jbossesb-server-4.2MR2" in the build directory and that is the ESB Server which will run almost all the examples. It has built in JBoss Messaging. Go to its bin directory and try "run".
Try hello world against this server instance as well.
Burr -
17. Re: Problem with quickstart helloworld: Failed to find actio
kconner Jul 5, 2007 4:10 PM (in response to andycooper)"andycooper" wrote:
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.
Sorry about this, I have updated the Build.txt file to reflect the current practice."andycooper" wrote:
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.
If you wish to install directly from the install directory then you can actually choose either :). It is the same build.xml file and it has been written so that it works correctly from both locations. -
18. Re: Problem with quickstart helloworld: Failed to find actio
kconner Jul 5, 2007 4:34 PM (in response to andycooper)"andycooper" wrote:
Done. Just sent them to you. Also added Quickstart_helloworld.esb
Can you send them again please? I only received a partial system.log.
Thanks -
19. Re: Problem with quickstart helloworld: Failed to find actio
tobysaville Jul 6, 2007 8:57 AM (in response to andycooper)i just experienced this issue. i did ant clean deploy (as well as physically deleting the deployed archive) and it deploys and tests ok now.
-
20. Re: Problem with quickstart helloworld: Failed to find actio
andycooper Jul 6, 2007 9:29 AM (in response to andycooper)Woohoo!!! This works. I've tried to figure out what I did differently, and I think it may be the "ant" vs. "ant install" thingie. In any event, I followed your steps and things worked happily. Prior to doing this, I tried to run "ant deploy" in the helloworld example to deploy to the server included as part of the distribution, and that had Java version problems, so the only thing I can think of is that perhaps I'd managed to try compiling some stuff with JDK 1.6 (it doesn't compile) and failed to clean completely even though I thought I did. Still, that would be a bizarre manifestation of mixed compilation.
In any event, I think I'm unstuck now. Thanks to both you and Kevin for all the help!!"burrsutter" wrote:
I messed up slightly:
My personal process is (old habits):
- SVN check out
- ant dist (in the product directory)
- cd build\jbossesb\install
- modify deployment.properties (or copy the example) to put to my AS and profile (\jboss\AS4.2 and "default" or "messaging")
- *ant install* should be "ant" with no target name
- start that AS instance to see if it is happy
- cd product\samples\quickstarts\conf
- modify quickstart.properties
- cd product\samples\quickstarts\helloworld
- ant deploy (look for it to hot deploy on server console)
- ant runtest (look for Hello World in the server console)
Another helloworld test is:
- ant undeploy (to remove that .esb archive from the deploy directory)
- ant run
- open another command window
- ant runtest (you should see the Hello World pop up in the first command window, not on the server console). This is an example of the "bootstrapper" deployment model.
It should be noted that after "ant dist" that you'll find "jbossesb-server-4.2MR2" in the build directory and that is the ESB Server which will run almost all the examples. It has built in JBoss Messaging. Go to its bin directory and try "run".
Try hello world against this server instance as well.
Burr -
21. Re: Problem with quickstart helloworld: Failed to find actio
kconner Jul 6, 2007 10:05 AM (in response to andycooper)You are spot on. I have just checked the esb you sent and it was compiled with jdk1.6.
I'll tidy up the logging so that these issues are obvious in future.
Thanks for your help and patience.
Kev -
22. Re: Problem with quickstart helloworld: Failed to find actio
andycooper Jul 6, 2007 11:09 AM (in response to andycooper)No problem. Thanks for your help as well.
"Kevin.Conner@jboss.com" wrote:
You are spot on. I have just checked the esb you sent and it was compiled with jdk1.6.
I'll tidy up the logging so that these issues are obvious in future.
Thanks for your help and patience.
Kev -
23. Re: Problem with quickstart helloworld: Failed to find actio
kconner Jul 6, 2007 11:48 AM (in response to andycooper)I have opened the following JIRA to cover this issue.
http://jira.jboss.com/jira/browse/JBESB-662 -
24. Re: Problem with quickstart helloworld: Failed to find actio
kconner Jul 6, 2007 11:52 AM (in response to andycooper)With the new code (in revision 13165) you will now see the following in the stacktrace
Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction, msg=Bad version number in .class file
andCaused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file