<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><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;">>>>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><provider>org.hibernate.ejb.HibernatePersistence</provider></div><div style="margin: 0px; font-size: 13px; font-family: Menlo;">Is the hibernate-entitymanager-<VERSION>.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 <<a href="mailto:frank.langelage@osnanet.de">frank.langelage@osnanet.de</a>> 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#<clinit>] <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#<init>] <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#<clinit>] 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#<clinit>] 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->58002K(573440K)] <br>560180K->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#<init>] <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->50463K(581632K)] <br>622286K->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.<init>(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><?xml version="1.0" encoding="UTF-8"?><br><persistence xmlns="<a href="http://xmlns.jcp.org/xml/ns/persistence">http://xmlns.jcp.org/xml/ns/persistence</a>"<br> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>xsi:schemaLocation="<a href="http://xmlns.jcp.org/xml/ns/persistence">http://xmlns.jcp.org/xml/ns/persistence</a> <br><a 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"><br> <persistence-unit name="@MBI_DBNAME@" transaction-type="JTA"><br><jta-data-source>java:jboss/datasources/@MBI_DBNAME@</jta-data-source><br><shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode><br> <validation-mode>NONE</validation-mode><br> <properties><br> <property name="hibernate.dialect" <br>value="org.hibernate.dialect.@HIBERNATE_DIALECT@"/><br> <!--<br> used values are<br> "org.hibernate.dialect.Oracle10gDialect"<br> "org.hibernate.dialect.InformixDialect"<br> --><br> <property name="hibernate.show_sql" value="@SHOW_SQL@"/><br> <property name="hibernate.format_sql" value="@SHOW_SQL@"/><br> <property name="hibernate.use_sql_comments" <br>value="@SHOW_SQL@"/><br> </properties><br> </persistence-unit><br></persistence><br><br>_______________________________________________<br>wildfly-dev mailing list<br><a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/wildfly-dev<br></blockquote></div><br></body></html>