I’m getting the following error when deploying the application in the Glassfish server,
“Error occurred during deployment: Exception while preparing the app :
java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence. Please see server.log for more details“
Please help me.
Thanks in advance,
Gnik
Built-in JPA provider in GlassFish is EclipseLink. That’s why it is expected that GlassFish does not have class files of Hibernate.
Some effort is needed. What should be done is to deploy hibernate libraries as a part of your application. Detailed instructions can be found from here.