http://pastie.org/9196859 is a NPE that occurs when the CDI BeanManager
is accessed during the first (EntityManagerFactoryBuilder) phase.
Hibernate ORM shouldn't use the BeanManager until the second bootstrap phase.
Links to git integration efforts to bring Hibernate 5.x into WildFly 9:
This issue is blocking me from making progress with integrating Hibernate 5.x into WildFly 9.x
Scott, what makes you think this is related to CDI? Unless the lines have changed significantly, that stack trace simply shows a NPE trying to access the Map of properties. I have seen cases of that being null before; I thought I had addressed those though. Moreover, that entire method has no code attempting to access the BeanManager.
Hmm, my mistake, looks like a simple bug trying to access all of the values in the Map. One of the values happens to be the org.jboss.weld.util.ForwardingBeanManager which delegates to the CDI BeanManager later. I think that Binder.bindIdentifierGenerator() should use containsKey().
Caused by: java.lang.NullPointerException
at java.util.Hashtable.contains(Hashtable.java:371) [rt.jar:1.7.0_51]