This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Hibernate, EJB 3 And GlassFish 3.0.1 integration error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Hibernate, EJB 3 And GlassFish 3.0.1 integration error" Watch "Hibernate, EJB 3 And GlassFish 3.0.1 integration error" New topic
Author

Hibernate, EJB 3 And GlassFish 3.0.1 integration error

Jacob DoubleU
Greenhorn

Joined: Aug 06, 2010
Posts: 1
I'm making an Enterprise Application, which part is Application Client. I've got EJB project that I want to use Hibernate for ORM. The problem is when I add Hibernate support to EJB project I've got the following error:



I have to say that I've found couple topics that cover similar problems but non of the solution works. I've updated by the Update tool glasfish to Use Hibernate JPA.
Strange thing is when I deploy ApplicationClient separatly everything is ok (The application client doesn't have Hibernate libraries inluded and doesn't have EJB support for the moment). As well when I deploy EJB project alone, which has Hibernate Support in it, it works suprisingly good. but when I try to run Enterprise Application - which includes both projects, but as an output should give the result of Application Client I get the above error. This is big mistery for me because I even didn't put any information into App Client about EJB and I'm already getting this error. When I try to run same Enterprise Project just befor I added hibernate Support to it it works well even if I add some Enterprise beans to App Client from EJB Project. So i assume that has to be some with Hibernate. I read that above errors has to do somethig with wrong JAR's that doesn't contain proper MANIFEST file but is it possible to occure with Hibernate libraries. This is my persistance.xml:



Strange is that EJB project I've created works fine with Internet WAR Application that uses servlets. Everything goes down when I try to to run EJB with Application Client.


Thank You for your time

Jacob



Nicolas Cova
Greenhorn

Joined: Dec 08, 2010
Posts: 3

I have this exact problem and I can't seem to find any answers for it. Did you find a way to fix it???
 
Consider Paul's rocket mass heater.
 
subject: Hibernate, EJB 3 And GlassFish 3.0.1 integration error
 
Similar Threads
Beginners Querylogue!
Error initializing Message Driven Bean
Exception on while deploying Ear using Glassfish+Apache CXF 2.3.1+Eclipse Helios
Problem loading EJB MEssage Driven Beans [u]MDB00017[/u] and GlassFish server console problem
Can't deploy hibernate/jpa project to Glassfish 3.1