These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: EAR in NetBeans with Hibernate + GlassFish + MySQL
PostPosted: Mon Jul 07, 2008 8:07 am 
Newbie

Joined: Mon Jul 07, 2008 7:57 am
Posts: 2
Location: Bariloche
Hello, this is my first post.

For the past few days I've been googling for a demo application, tutorial or example for the application I'm trying to write:

Rich Client with NetBeans Platform + Web Client with JSF + Glassfish v2 UR2 + Hibernate + MySQL.

I'm using NetBeans 6.1 as my IDE and have installed the Hibernate Plugin, works excellent for Web Applications, but I've failed in try to using it for an Enterprise Application.

Please, if someone has done it before, send my how should I structure my proyect, which jars (and where) are strictly necessary to run it and which configuration files (and where) should I have.

Besides, if it's not too much asking, how would be the better configuration for all this components.

Thanks in advance!!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 9:20 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Quote:
I'm using NetBeans 6.1 as my IDE and have installed the Hibernate Plugin, works excellent for Web Applications, but I've failed in try to using it for an Enterprise Application.


Well, a web application is actually an Enterprise application. Just because it doesn't have EJBs doesn't mean it's not enterprise ready.

Your configuration is solid. What type of errors are you getting when you try to deploy? What works, what doesn't, and can you summarize any errors you're having?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 9:53 am 
Newbie

Joined: Mon Jul 07, 2008 7:57 am
Posts: 2
Location: Bariloche
Thanks for replying me.

When I said EAR I ment the options of creating projects in NetBeans IDE. I've installed Hibernate Plugin in NetBeans 6.1 and when I create a new project of type "Web Application" it asks me if I want to use Hibernate Framework and automatically adds the necesary jars as a Library in my project. It also adds an option to my "New->File" menu: "Hibernate File" where I can choose "hibernate.cfg.xml" and "HibernateUtils.java".
On the other hand, when I create an "Enterprise Application" as my new project, it doesn't ask me to use Hibernate or not. I've try to manually replicate the configuration that I had on the "Web Application" with no success. The error is a ClassNotFoundException when I try to deploy, it doesn't find HibernateEntityManager.
I've read some posts that said you have to put the Hibernate jars inside AppServer classpath, but many others said that if you do so, you wouldn't be able to use another Framework in your AppServer, for other application.
So, where should I put Hibernate jars? In application-ear project, application-ear-ejb, applicacion-ear-app-client??? I'm really confused...
I hope I've explained me better now. If not, please let me know.

Thanks in advance for your help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.