Problem when try to run application using hibernate 4.2.2 on Glassfish v4

Description

When I try to deploy a war inside new GFv4, I've this error:

1 2 3 4 5 Caused by: java.lang.AbstractMethodError: org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(Ljavax/persistence/SynchronizationType;Ljava/util/Map;)Ljavax/persistence/EntityManager; at com.sun.enterprise.container.common.impl.EntityManagerWrapper.getNonTxEMFromCurrentInvocation(EntityManagerWrapper.java:268) at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:213) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.createQuery(EntityManagerWrapper.java:455) at org.kyrian.core.manager.ParameterManager.loadParameters(ParameterManager.java:43)

This code runs on a init of main servlet.

When I use HB 4.3.0.Beta3 I've other error:

1 2 3 4 Exception while preparing the app : org/hibernate/ejb/connection/InjectedDataSourceConnectionProvider java.lang.ClassNotFoundException: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1761) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1611)

I use a DataSourceProvider to inject Oracle Proxy Connections

Environment

Glassfish v4
jdk7u21

Status

Assignee

Unassigned

Reporter

Marcial AtiƩnzar Navarro

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.2.2
4.3.0.Beta3

Priority

Major