2 Replies Latest reply on May 6, 2014 5:48 PM by enavit

    Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'

    enavit Newbie

      Hi,

       

      I try to deploy an application what uses hibernate ogm and I always get the error "Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'".

      I have installed the module ogm under WILDFLY_HOME/modules/org/hibernate but it didn't help.

      Do I need to configure something in standalone.xml?

       

      Thanks and best regards

      Loi

        • 2. Re: Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'
          enavit Newbie

          Hi Tomaz,

           

          yes, I did follow that link but it didn't work.

           

          here is the stacktrace:

           

          23:41:34,314 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "testapp.war" (runtime-name: "testapp.war")

          23:41:36,366 INFO  [org.jboss.as.jpa] (MSC service thread 1-10) JBAS011401: Read persistence.xml for manasys

          23:41:36,367 INFO  [org.jboss.as.jpa] (MSC service thread 1-10) JBAS011401: Read persistence.xml for manasysCR

          23:41:36,899 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC000001: Failed to start service jboss.deployment.unit."testapp.war".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."testapp.war".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment "testapp.war"

                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.CR1.jar:8.1.0.CR1]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0]

                  at java.lang.Thread.run(Thread.java:744) [rt.jar:1.8.0]

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011445: Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'

                  at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.getPersistenceProviderAdaptor(PersistenceUnitServiceHandler.java:861)

                  at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:259)

                  at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleWarDeployment(PersistenceUnitServiceHandler.java:191)

                  at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:126)

                  at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)

                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.CR1.jar:8.1.0.CR1]

                  ... 5 more

           

          23:41:36,905 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "testapp.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testapp.war\".FIRST_MODULE_USE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testapp.war\".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment \"testapp.war\"

              Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011445: Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'"}}

          23:41:36,908 ERROR [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "testapp.war" was rolled back with the following failure message:

          {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testapp.war\".FIRST_MODULE_USE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testapp.war\".FIRST_MODULE_USE: JBAS018733: Failed to process phase FIRST_MODULE_USE of deployment \"testapp.war\"

              Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011445: Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'"}}

          23:41:36,968 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-15) JBAS015877: Stopped deployment testapp.war (runtime-name: testapp.war) in 60ms

          23:41:36,969 INFO  [org.jboss.as.controller] (management-handler-thread - 2) JBAS014774: Service status report

          JBAS014777:   Services which failed to start:      service jboss.deployment.unit."testapp.war".FIRST_MODULE_USE

           

          thank you for your interest.

           

          best regards

          Loi