7 Replies Latest reply on Jan 3, 2006 11:54 AM by Libor Kotouc

    Netbeans, JBoss and Hibernate

    Samir Sanghani Newbie

      Hi,

      This is a repost. Sorry about that. I earlier posted this as a response to welcome message and I think that is why it has missed attention of people who can help me on this.

      I am trying to use Netbeans 4.1 with JBoss 4.0.3SP1 using the Netbeans beta plugin for JBoss. I also want to use hibernate for dao and this is where I am not able to figure out the way to do it. I have got the workspace setup, have included Hibernate's .hbm files and classes for it but not able to figure out how to configure the datasource for the same and how to ensure the EAR file will be built with all the right settings to be deployed seamlessly.
      Can you pls. guide me as to how to use Netbeans, Jboss and Hibernate together?
      Thanks in advance.
      Samir

        • 1. Re: Netbeans, JBoss and Hibernate
          Petr Jiricka Newbie

          For working with JBoss, I recommend using NetBeans 5.0 beta2 rather than 4.1. NetBeans 5.0 already contains the JBoss plugin in the base distribution, and it is much more mature and stable than the 4.1 version.

          Or, if you need a final version of the tool, use the Sun Java Studion Enterprise 8, which is now free, is based on NetBeans 4.1, and contains the JBoss plugin.

          For Hibernate, do you want to use the XDoclet-bases version, or the annotation-based version (Hibernate 3.x)?

          • 2. Re: Netbeans, JBoss and Hibernate
            Ayua Newbie

            hello!
            I am also trying to connect Hibernate, I have netbeans5.0 beta2 and jboss4.0.2 and Hibernate XDoclet-bases version. can you help me configure them?
            Thanks in advance.

            • 3. Re: Netbeans, JBoss and Hibernate
              Pavel Buzek Newbie

              Our focus for NetBeans 5.0 is to support the features of J2EE specification - EJB, JSP/Servlet/JSF and JAX-RPC web services and make these work for JBoss 4.0.x. NetBeans 5.0 does not support JBoss extensions, like Hibernate or AOP.

              The next version of NetBeans will support Java Persistence API (JSR 220), which gives you most of the features of Hibernate but is a JCP standard. Note that JBoss 4.0.3 already has EJB 3 and Java Persistence API in it, even though the spec is not final yet. There is currently no plan to support XDoclet in NetBeans, as far as I know.

              • 4. Re: Netbeans, JBoss and Hibernate
                Ronye Vernaes Newbie

                I'm using hibernate under Netbeans 5.0 beta 2, and JBoss 4.0.3SP1 AS.

                And it's a shot to the floor. Read the jboss documentation, because you must add a jboss-service.xml to your proyect.

                Of rest, everything it's easy, just you must to take the .jar and name it lika a .har and paste it in the deploy directory of jboss.

                Now I have a little problem deploying JSF pages made in Netbeans 5.0 beta 2, in JBoss AS... looks like the FacesServlet isn't correctly configured. I deploy the same proyect in the Tomcat bundle that Netbeans have (without the JBoss configuration), and I didn't have any problem.

                If somebody knows how deploy JSF proyects made in Netbeans 5.0 beta 2, in a JBoss 4.0.3SP1 AS, I would thank you very much

                • 5. Re: Netbeans, JBoss and Hibernate
                  Niranjan Talluru Newbie

                  Hello,
                  how can i configure hibernate to my NetBeans5.0Beta. And what version of Hibernate is compatible with NetBeans5.0Beta version.

                  Regards
                  Niranjan

                  • 6. Re: Netbeans, JBoss and Hibernate
                    Niranjan Talluru Newbie

                    How can i run my Hibernate Application on Eclipse3.0. What are the jar files needed to add in folders before instalation.

                    Regards
                    Niranjan

                    • 7. Re: Netbeans, JBoss and Hibernate
                      Libor Kotouc Newbie

                      There is really something wrong with the running of a project with JSF support created in NetBeans. I have just filed the issue for it, http://web.netbeans.org/issues/show_bug.cgi?id=70952, the scenario is very simple, so if you have any comments or additional information, please feel free to append them.