<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Setting the provider element to the
      value you suggested makes it even worse:<br>
      Caused by: javax.persistence.PersistenceException: WFLYJPA0057:
      PersistenceProvider 'org.hibernate.ejb.HibernatePersistence' not
      found<br>
              at
org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:1006)<br>
              at
org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.nextPhaseDependsOnPersistenceUnit(PersistenceUnitServiceHandler.java:1045)<br>
              at
org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:135)<br>
              at
org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)<br>
              at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)<br>
              ... 5 more<br>
      <br>
      I added instead this<br>
             
&lt;provider&gt;org.hibernate.jpa.HibernatePersistenceProvider&lt;/provider&gt;<br>
      but this doe not change anything. Same NPE as I had before.<br>
      <br>
      No, I do not have hibernate jar in my pom.xml, I not aven have a
      pom.xml file because I'm using ant for build. ;-)<br>
      I do not provide my own hibernate version, I just try the use the
      version 5.0.0.CR2 delivered by WildFly now. With the hibernate
      version 4.3.10 used until the day before yesterday everything was
      fine.<br>
      So it's something related to the hibernate update. Either it's not
      yet complete, but how did the testsuite run successful then, or a
      change to persistence.xml or else is needed.<br>
      <br>
      <br>
      On 11.07.15 14:37, Eduardo Sant'Ana da Silva wrote:<br>
    </div>
    <blockquote
      cite="mid:289EA5E1-D09C-4061-BD4E-E10BEF661EF8@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;">Maybe
          something related to your persistence provider.</div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;
          min-height: 15px;"><br>
        </div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;">The
          error seems to be here:</div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;">&gt;&gt;&gt;EntityManagerFactoryBuilder
          emfBuilder = phaseOnePersistenceUnitService.getEntityManagerFa<span
            style="color: #ce7924">    </span>ctoryBuilder();</div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;
          min-height: 15px;"><br>
        </div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;
          min-height: 15px;">I'm not sure about the following, is just a
          hint...</div>
        <div style="margin: 0px; font-size: 13px; font-family: Consolas;
          color: rgb(35, 35, 35); background-color: rgb(238, 238, 238);
          position: static; z-index: auto;"><span style="font-family:
            Menlo; color: rgb(0, 0, 0); background-color: transparent;">Could
            you try add this line? </span>&lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;</div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;">Is
          the hibernate-entitymanager-&lt;VERSION&gt;.jar on your
          pom.xml?</div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;">Are
          you using jboss-deployment-structures.xml file? Could you
          provide it?</div>
        <div style="margin: 0px; font-size: 13px; font-family: Menlo;
          min-height: 15px;"><br>
        </div>
      </div>
      <div style="margin: 0px; font-size: 13px; font-family: Menlo;
        min-height: 15px;"><br>
      </div>
      <div style="margin: 0px; font-size: 13px; font-family: Menlo;
        min-height: 15px;">Eduardo Sant'Ana da Silva</div>
      <br>
      <div>
        <div>On Jul 11, 2015, at 7:23 AM, Frank Langelage &lt;<a
            moz-do-not-send="true"
            href="mailto:frank.langelage@osnanet.de">frank.langelage@osnanet.de</a>&gt;
          wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">After upgrading WildFly to latest alpha5
          including the Hibernate ORM <br>
          update to 5.0.0.CR2 the persistence unit inside my ear cannot
          be started <br>
          anymore.<br>
          <br>
          11.07. 12:17:54,698 INFO  [org.jboss.as.jpa#run] WFLYJPA0010:
          Starting <br>
          Persistence Unit (phase 1 of 2) Service <br>
          'maj2e-langfr-dev.ear/ejb-entity.jar#maj2e-langfr-dev'<br>
          11.07. 12:17:54,954 INFO <br>
          [org.hibernate.jpa.internal.util.LogHelper#logPersistenceUnitInformation]
          HHH000204: <br>
          Processing PersistenceUnitInfo [<br>
                  name: maj2e-langfr-dev<br>
                  ...]<br>
          11.07. 12:17:55,546 INFO  [org.hibernate.Version#logVersion]
          HHH000412: <br>
          Hibernate Core {5.0.0.CR2}<br>
          11.07. 12:17:55,552 INFO
          [org.hibernate.cfg.Environment#&lt;clinit&gt;] <br>
          HHH000206: hibernate.properties not found<br>
          11.07. 12:17:55,562 INFO <br>
          [org.hibernate.cfg.Environment#buildBytecodeProvider]
          HHH000021: <br>
          Bytecode provider name : javassist<br>
          11.07. 12:17:55,701 INFO
          [org.hibernate.orm.deprecation#&lt;init&gt;] <br>
          HHH90000001: Found usage of deprecated setting for specifying
          Scanner <br>
          [hibernate.ejb.resource_scanner]; use
          [hibernate.archive.scanner] instead<br>
          11.07. 12:17:55,761 INFO <br>
          [org.hibernate.annotations.common.Version#&lt;clinit&gt;]
          HCANN000001: <br>
          Hibernate Commons Annotations {5.0.0.Final}<br>
          11.07. 12:17:55,877 INFO  [org.jboss.weld.deployer#deploy]
          WFLYWELD0003: <br>
          Processing weld deployment ejb-session-core.jar<br>
          11.07. 12:17:55,940 INFO  [org.jboss.weld.deployer#deploy]
          WFLYWELD0006: <br>
          Starting Services for CDI deployment: maj2e-langfr-dev.ear<br>
          11.07. 12:17:56,447 INFO
           [org.jboss.weld.Version#&lt;clinit&gt;] WELD-000900: <br>
          2.3.0 (Beta2)<br>
          11.07. 12:18:14,049 INFO  [org.jboss.weld.deployer#start]
          WFLYWELD0009: <br>
          Starting weld service for deployment maj2e-langfr-dev.ear<br>
          [GC (Allocation Failure) [PSYoungGen:
          475136K-&gt;58002K(573440K)] <br>
          560180K-&gt;143054K(1974272K), 0.4947124 secs] [Times:
          user=0.80 sys=0.04, <br>
          real=0.49 secs]<br>
          11.07. 12:18:18,028 INFO  [org.jboss.as.jpa#run] WFLYJPA0010:
          Starting <br>
          Persistence Unit (phase 2 of 2) Service <br>
          'maj2e-langfr-dev.ear/ejb-entity.jar#maj2e-langfr-dev'<br>
          11.07. 12:18:19,201 INFO
          [org.hibernate.dialect.Dialect#&lt;init&gt;] <br>
          HHH000400: Using dialect:
          org.hibernate.dialect.Oracle10gDialect<br>
          11.07. 12:18:19,521 INFO <br>
          [org.hibernate.envers.boot.internal.EnversServiceImpl#configure]
          Envers <br>
          integration enabled? : true<br>
          [GC (Allocation Failure) [PSYoungGen:
          537234K-&gt;50463K(581632K)] <br>
          622286K-&gt;135516K(1982464K), 0.4342550 secs] [Times:
          user=0.80 sys=0.00, <br>
          real=0.43 secs]<br>
          11.07. 12:18:36,361 ERROR [org.jboss.msc.service.fail#failed]
          MSC000001: <br>
          Failed to start service <br>
          jboss.persistenceunit."maj2e-langfr-dev.ear/ejb-entity.jar#maj2e-langfr-dev":
          <br>
          org.jboss.msc.service.StartException in service <br>
          jboss.persistenceunit."maj2e-langfr-dev.ear/ejb-entity.jar#maj2e-langfr-dev":
          <br>
          javax.persistence.PersistenceException: [PersistenceUnit: <br>
          maj2e-langfr-dev] Unable to build Hibernate SessionFactory<br>
                  at <br>
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172)<br>
                  at <br>
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117)<br>
                  at <br>
org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:666)<br>
                  at <br>
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182)<br>
                  at <br>
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)<br>
                  at <br>
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)<br>
                  at java.lang.Thread.run(Thread.java:745)<br>
                  at
          org.jboss.threads.JBossThread.run(JBossThread.java:320)<br>
          Caused by: javax.persistence.PersistenceException:
          [PersistenceUnit: <br>
          maj2e-langfr-dev] Unable to build Hibernate SessionFactory<br>
                  at <br>
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:877)<br>
                  at <br>
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:805)<br>
                  at <br>
org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)<br>
                  at <br>
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154)<br>
                  ... 7 more<br>
          Caused by: java.lang.NullPointerException<br>
                  at <br>
org.hibernate.cache.internal.CacheDataDescriptionImpl.decode(CacheDataDescriptionImpl.java:77)<br>
                  at <br>
org.hibernate.internal.SessionFactoryImpl.determineEntityRegionAccessStrategy(SessionFactoryImpl.java:628)<br>
                  at <br>
org.hibernate.internal.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:330)<br>
                  at <br>
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)<br>
                  at <br>
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:802)<br>
                  ... 9 more<br>
          <br>
          My persistence.xml:<br>
          &lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
          &lt;persistence xmlns="<a moz-do-not-send="true"
            href="http://xmlns.jcp.org/xml/ns/persistence">http://xmlns.jcp.org/xml/ns/persistence</a>"<br>
                       xmlns:xsi="<a moz-do-not-send="true"
            href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
          xsi:schemaLocation="<a moz-do-not-send="true"
            href="http://xmlns.jcp.org/xml/ns/persistence">http://xmlns.jcp.org/xml/ns/persistence</a>
          <br>
          <a moz-do-not-send="true"
            href="http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd</a>"
          version="2.1"&gt;<br>
              &lt;persistence-unit name="@MBI_DBNAME@"
          transaction-type="JTA"&gt;<br>
&lt;jta-data-source&gt;java:jboss/datasources/@MBI_DBNAME@&lt;/jta-data-source&gt;<br>
&lt;shared-cache-mode&gt;ENABLE_SELECTIVE&lt;/shared-cache-mode&gt;<br>
                  &lt;validation-mode&gt;NONE&lt;/validation-mode&gt;<br>
                  &lt;properties&gt;<br>
                      &lt;property name="hibernate.dialect" <br>
          value="org.hibernate.dialect.@HIBERNATE_DIALECT@"/&gt;<br>
                      &lt;!--<br>
                          used values are<br>
                          "org.hibernate.dialect.Oracle10gDialect"<br>
                          "org.hibernate.dialect.InformixDialect"<br>
                      --&gt;<br>
                      &lt;property name="hibernate.show_sql"
          value="@SHOW_SQL@"/&gt;<br>
                      &lt;property name="hibernate.format_sql"
          value="@SHOW_SQL@"/&gt;<br>
                      &lt;property name="hibernate.use_sql_comments" <br>
          value="@SHOW_SQL@"/&gt;<br>
                  &lt;/properties&gt;<br>
              &lt;/persistence-unit&gt;<br>
          &lt;/persistence&gt;<br>
          <br>
          _______________________________________________<br>
          wildfly-dev mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
          <a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/wildfly-dev">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </body>
</html>