10 Replies Latest reply on Apr 2, 2008 11:28 AM by jej2003

    JBoss Tools Installation Issue?

    jej2003

      So I am attempting to dabble with J2EE and I am running into issues installing the JBoss Tools on Eclipse. I have Eclipse version 3.3.2 and have the latest stable version of JBoss Tools 2.0.1 GA installed. For whatever reason though the JBoss-IDE project type under the New Project wizard. Was there something I missed during the install to enable this?

        • 1. Re: JBoss Tools Installation Issue?
          jej2003

          Maybe I am asking the wrong questions. In the version of JBoss tools that I am using what is the procedure for building a new EJB Project? Should there be a JBoss-IDE project category in the wizard dialog?

          Is there any good beginner documentation for building ejbs?

          • 2. Re: JBoss Tools Installation Issue?
            rob.stryker

            The JBoss IDE EJB project type no longer exists. It was deemed redundant with the webtools ejb project. It provided little to no added functionality. The wizards to create some EJB elements are still present.

            Also, I don't believe we target 3.3 though I'm not sure.

            • 3. Re: JBoss Tools Installation Issue?
              maxandersen

              www.jboss.org/tools -> click documentation ;)

              And we do target Eclipse 3.3.x.

              • 4. Re: JBoss Tools Installation Issue?
                jej2003

                Great, I will go through and use the EJB wizard then. Thanks!

                I am browsing through the documentation that is at www.jboss.org/tools now. Is there any tutorials that anyone is aware of to go through the process of building a hello world sort of J2EE App?

                • 5. Re: JBoss Tools Installation Issue?
                  jej2003

                  Ok, new problem. I am trying to deploy my new EJB project to JBoss 4.0.4 and I get an error saying JBoss 4.0.4 does not support version 5.0 of the J2EE Enterprise application specification. If I install a new server I can launch this using 4.2 (at least the above message goes away) but my group is currently using 4.0.4 so I'd like to get it working with that version. Did I miss something that would specify this?

                  • 6. Re: JBoss Tools Installation Issue?
                    rob.stryker

                    Please make sure you're using "JBoss, a division of Red Hat" when creating your server, not "JBoss".

                    • 7. Re: JBoss Tools Installation Issue?
                      jej2003

                      I am, so I am not sure what the deal is.

                      I am trying to follow the tutorial at http://docs.jboss.org/ejb3/app-server/tutorial/stateless/stateless.html. I have created an EJB Project (which also generated a Client and and EAR project), under ejbModule I created all the src files, but when I right click on the EAR and Run As -> Run on Server and choose my 4.2.4 server and run the server I get the following error:

                      Problem creating service jboss.j2ee:service=EJB3,module=TestWebApp.jar
                      java.lang.classNotFoundException: Unexpected error during load of: org.jboss.tutorial.stateless.bean.CalculatorBean, msg=Bad version number in .class file
                      ...
                      Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
                      ...

                      I am sure that I am doing something stupid, but being that this is my first attempt at EJB 3 in eclipse (or anywhere for that matter) I don't know what I missed. Any suggestions?

                      • 8. Re: JBoss Tools Installation Issue?
                        rob.stryker

                        That is a generic java error message. It means you've compiled with one jdk and are trying to run with a JRE of a different (lower) version.

                        Specifically, your workspace compiler is probably java 6, and you're running jboss with a 5.0 JRE. (That's my best guess)

                        • 9. Re: JBoss Tools Installation Issue?
                          jej2003

                          Yeah you were correct. I now get the test application to deploy without any errors. I am now trying to build the client for this and I am not sure where this should be created. Should the client be placed in the CalculatorClient project that was created when I built the EJB Project or does it go in the Calculator project (the actual ejb) along with the rest of the source?

                          It seems at this point I may not be asking this question in the correct place. If that is the case if someone could point me in the direction I should be asking that'd be appreciated.

                          • 10. Re: JBoss Tools Installation Issue?
                            jej2003

                            I got the example to run. Thanks for everyones help! Off to J2EE wonderland now!