• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

Hibernate, EJB 3 And GlassFish 3.0.1 integration error

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


Posts: 3
Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this exact problem and I can't seem to find any answers for it. Did you find a way to fix it???
please buy this thing and then I get a fat cut of the action:
professionally read, modify and write PDF files from Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!