users@glassfish.java.net

org.hibernate.ejb.HibernatePersistence.isLoadedWithoutReference exception

From: <glassfish_at_javadesktop.org>
Date: Sun, 22 Nov 2009 13:42:00 PST

Hi,
    I am migrating a application I am developing from Glassfish v2.1 to v3. The application makes use of JPA and hibernate.

I have downloaded the glassfish v3 preview and run the update tool to get teh latest stable modules. I have also downloaded the "Hibernate JPA" add-in module.

When I go to deploy my services ear I get the following exception:

Error during deployment : org.hibernate.ejb.HibernatePersistence.isLoadedWithoutReference(Ljava/lang/Object;Ljava/lang/String;)Ljavax/persistence/spi/LoadState; : java.lang.AbstractMethodError: org.hibernate.ejb.HibernatePersistence.isLoadedWithoutReference(Ljava/lang/Object;Ljava/lang/String;)Ljavax/persistence/spi/LoadState;

The log has a long stacktrace, here is a snip:

[#|2009-11-22T21:37:44.690+0000|SEVERE|glassfish|javax.enterprise.system.tools.admin.org.glassfish.server|_ThreadID=29;_ThreadName=Thread-1;|Error during deployment : org.hibernate.ejb.HibernatePersistence.isLoadedWithoutReference(Ljava/lang/Object;Ljava/lang/String;)Ljavax/persistence/spi/LoadState;
java.lang.AbstractMethodError: org.hibernate.ejb.HibernatePersistence.isLoadedWithoutReference(Ljava/lang/Object;Ljava/lang/String;)Ljavax/persistence/spi/LoadState;
        at javax.persistence.Persistence$PersistenceUtilImpl.isLoaded(Persistence.java:106)
        at org.hibernate.validation.engine.resolver.JPATraversableResolver.isTraversable(JPATraversableResolver.java:30)
        at org.hibernate.validation.engine.resolver.DefaultTraversableResolver.isTraversable(DefaultTraversableResolver.java:42)
        at org.hibernate.validation.engine.ExecutionContext.isValidationRequired(ExecutionContext.java:292)
        at org.hibernate.validation.engine.ValidatorImpl.validateValueForGroup(ValidatorImpl.java:488)
        at org.hibernate.validation.engine.ValidatorImpl.validateValue(ValidatorImpl.java:436)
        at org.hibernate.validation.engine.ValidatorImpl.validateValue(ValidatorImpl.java:140)
        at org.jvnet.hk2.config.WriteableView.handleValidation(WriteableView.java:564)
        at org.jvnet.hk2.config.WriteableView.setter(WriteableView.java:147)
        at org.jvnet.hk2.config.WriteableView.invoke(WriteableView.java:106)
        at $Proxy55.setName(Unknown Source)
        at com.sun.enterprise.v3.server.ApplicationLifecycle$2.run(ApplicationLifecycle.java:773)
        at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:171)
        at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:130)


Any ideas on where to look for the problem?
[Message sent by forum member 'seclarke' ]

http://forums.java.net/jive/thread.jspa?messageID=372859