File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

Hibernate, EJB 3 And GlassFish 3.0.1 integration error

Jacob DoubleU

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


Nicolas Cova

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???
I agree. Here's the link:
subject: Hibernate, EJB 3 And GlassFish 3.0.1 integration error
It's not a secret anymore!