11 Replies Latest reply on Oct 27, 2011 10:35 PM by Scott Marlow

    Hibernate OGM on AS7

    Marko Milenković Newbie

      Hi guys,

      have anyone managed to bootstrap Hibernate OGM on AS7? Looks like that documentation that explains required configuration is outdated.

       

      Currently, AS 7.0.0 throws a NPE if you try to deploy persistence.xml with HibernateOgmPersistence provider. From the log file I can't find the root of the problem. However, if you try to deploy the same application on AS nightly snapshot, a bit "better" exception is thrown

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: only one persistence provider can be packaged with an application [org.hibernate.ogm.jpa.HibernateOgmPersistence, org.hibernate.ejb.HibernatePersistence]

       

      if I try to remove hibernate-entitymanager dependencies it starts to complain about missing classes provided by hibernate-entitymanager.

       

      Is there some configuration option that I miss ?

      best regards