3 Replies Latest reply on Oct 27, 2011 5:11 PM by Jignesh Patel

    JBoss 7 and data nucleus 3.0.0

    Jignesh Patel Newbie

      I am trying to run following example on JBoss 7.0.2 and data nucleus 3.0

      http://architects.dzone.com/articles/how-use-jpa-and-jdo-hbase


      But JBoss gives me following error

       

      Caused by: javax.persistence.PersistenceException: PersistenceProvider 'org.datanucleus.jpa.PersistenceProviderImpl' not found

       


      Any idea why JBoss 7 is not recongizing it.


      -Jignesh


        • 1. Re: JBoss 7 and data nucleus 3.0.0
          jaikiran pai Master

          Can you please post the entire exception stacktrace and the persistence.xml?

          • 2. Re: JBoss 7 and data nucleus 3.0.0
            Jignesh Patel Newbie

            Here is the full exception stack trace.

             

            14:02:59,802 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11) MSC00001: Failed to start service jboss.deployment.unit."DNHS.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."DNHS.war".INSTALL: Failed to process phase INSTALL of deployment "DNHS.war"

                      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

                      at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]

            Caused by: javax.persistence.PersistenceException: PersistenceProvider 'org.datanucleus.jpa.PersistenceProviderImpl' not found

                      at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.lookupProvider(PersistenceUnitDeploymentProcessor.java:491)

                      at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:245)

                      at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:170)

                      at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:100)

                      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

                      ... 5 more

             

            14:03:00,014 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "DNHS.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"DNHS.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"DNHS.war\".INSTALL: Failed to process phase INSTALL of deployment \"DNHS.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.DNHS.DNHS.Validator missing [ jboss.naming.context.java.module.DNHS.DNHS ]","jboss.naming.context.java.module.DNHS.DNHS.ValidatorFactory missing [ jboss.naming.context.java.module.DNHS.DNHS ]"]}

            14:03:00,032 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-15) Stopped deployment DNHS.war in 18ms

            14:03:00,034 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"DNHS.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"DNHS.war\".INSTALL: Failed to process phase INSTALL of deployment \"DNHS.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.DNHS.DNHS.Validator missing [ jboss.naming.context.java.module.DNHS.DNHS ]","jboss.naming.context.java.module.DNHS.DNHS.ValidatorFactory missing [ jboss.naming.context.java.module.DNHS.DNHS ]"]}}}