-
1. Re: how to manage ejb3.0-project in eclipse
kh2ouija Apr 17, 2006 10:36 AM (in response to javaos)I use JBossIDE.
First go to Debug... and create a JBoss launch configuration.
Create a normal Java project with a directory structure similar to the one in the Seam examples, as I find that one very intuitive. Make sure you have all necesary libs (seam dependencies, seam, myfaces, facelets etc) configured for your new project. Then configure the packaging build (right click on project -> properties -> packaging configuration and configure the build for an ear file (again, like in the examples). After you do a 'run packaging' on the project, if all goes well, you'll have an ear archive in a directory of the project (eg build). Right click it -> deploy to -> <your jboss configuration>. That's it, hope it helps. -
2. Re: how to manage ejb3.0-project in eclipse
javaos Apr 18, 2006 8:57 AM (in response to javaos)@kh2ouija:
Many thanks to you. You helped me a lot by giving me the hint to use "package configurations" to configure an .ear-archive. But If I deploy the .ear-file using the "deployment"-menuitem while running JBoss in debug-mode (using the configuration I specified in eclipse), I cannot debug my application. I set a breakpoint in a method but execution doesn't come there. Are you able to debug if you package and deploy an application the way you told me? -
3. Re: how to manage ejb3.0-project in eclipse
cyril.joui Apr 18, 2006 9:26 AM (in response to javaos)Hello I Found an article about how to develop EJB3 + WTP plugin in Eclipse there :
http://labo-sun.com/resource-fr-articles-1063-0-java-eclipse-j2ee-ecriture-d-application-web-et-ejb3-avec-eclipse-wtp.htm
(but it's in french ...)
Good luck -
4. Re: how to manage ejb3.0-project in eclipse
kh2ouija Apr 19, 2006 12:34 PM (in response to javaos)@javaos
I assume you launch JBoss from Eclipse, using a JBoss launch configuration. Are you sure the method where you set your breakpoint actually gets executed? Because for me it *just works*. -
5. Re: how to manage ejb3.0-project in eclipse
javaos Apr 20, 2006 7:57 AM (in response to javaos)@kh2ouija:
Yes, I launch JBoss from Eclipse. But I'm not sure whether the method where I put the breakpoint is executed. I made a System.out which I didn't see on console. I will try another example as soon as I find the time. What counts I the fact that it works for you, because then it will work for me too. I will let you know as soon as I find out what's the problem.
again, many thanks for your help. -
6. Re: how to manage ejb3.0-project in eclipse
javaos Apr 20, 2006 3:54 PM (in response to javaos)@kh2ouija:
it works!!! I just tried another example and program execution stops at the breakpoint. Thanks a lot for your help!