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.