<div dir="ltr">I discussed this last point with Scott.  I&#39;d prefer to drop support for 4.x in WildFly 10.  Ideally if that could mean &quot;archiving&quot; that support so users could easily drop it in *if they chose*, great.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 28, 2015 at 10:56 AM, Jason Greene <span dir="ltr">&lt;<a href="mailto:jason.greene@redhat.com" target="_blank">jason.greene@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On May 28, 2015, at 10:42 AM, Scott Marlow &lt;<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 05/28/2015 10:29 AM, Steve Ebersole wrote:<br>
&gt;&gt; I am just not sure a lot of this is true.  What<br>
&gt;&gt; EntityManagerFactoryBuilder (the proprietary Hibernate 2-Phase JPA<br>
&gt;&gt; bootstrap SPI) contracts changed in 5.0?<br>
&gt;<br>
&gt; Minor changes so far:<br>
&gt;<br>
&gt; Some org.hibernate.jpa.boot.scan.spi package changes to org.hibernate.boot.archive.scan.spi.<br>
&gt;<br>
&gt; Configuration.USE_NEW_ID_GENERATOR_MAPPINGS is now AvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; As for Jandex version, 5.0 is not using Jandex.  We accept a IndexView,<br>
&gt;&gt; but we currently do not use it.  So that actually should also not cause<br>
&gt;&gt; any issues in regards to Hibernate 4.x or 5.0<br>
&gt;<br>
&gt; We are not passing the IndexView in currently (we could if that becomes important in the future, as long as we don&#39;t keep a reference to the JandexView after the EMF is created).  I don&#39;t think that would be helpful though as you need changes for XML file handling I think.<br>
<br>
</span>That should be the eventual goal. We don’t want to process all classes for annotations N times for every framework that wants to read them, as it hurts deployment time. We had this before, we really need to bring it back.<br>
<span class=""><br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; As far as using the standard JPA bootstrap SPIs, I agree this is up to<br>
&gt;&gt; Scott.  But it simply will not work for the way WildFly does stuff as I<br>
&gt;&gt; understand it.<br>
&gt;<br>
&gt; This is really the first time that I have heard a complaint.  I think its a timing issue, that people (like Sanne) have work to do but cannot get to it until WildFly switches to Hibernate 5.0.<br>
<br>
</span>We tend to update to the latest hibernate revs very quickly, so I haven’t seen much either, and so it might not be worth “supporting&quot;. It’s usually supporting old versions of hibernate that comes up, but I think thats largely been addressed (we have integrations for 3 etc).<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Second-level cache, yes, is a whole other ball of wax :)<br>
&gt;<br>
&gt; Yep, sometimes the second-level cache breaks in ways that we don&#39;t detect, when we upgrade WildFly to a newer Infinispan version.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Thu, May 28, 2015 at 9:18 AM, Jason Greene &lt;<a href="mailto:jason.greene@redhat.com">jason.greene@redhat.com</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:jason.greene@redhat.com">jason.greene@redhat.com</a>&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;    We implement the standard JPA integration SPI, but it is absolutely<br>
&gt;&gt;    awful.<br>
&gt;&gt;<br>
&gt;&gt;    It forces:<br>
&gt;&gt;<br>
&gt;&gt;    - The construction of duplicate class loaders with duplicate class<br>
&gt;&gt;    definitions of every class in the deployment<br>
&gt;&gt;    - Repeated runs of the deployment process<br>
&gt;&gt;    - Double loading of any class related to JPA (and its dependencies)<br>
&gt;&gt;    - The JPA provider to use reflection for all annotation discovery<br>
&gt;&gt;    - Double use of reflection in the deployment process<br>
&gt;&gt;    - Bugs from chicken and egg problems<br>
&gt;&gt;    - Increased memory usage<br>
&gt;&gt;<br>
&gt;&gt;    So for this reason WildFly and Hibernate have their own integration<br>
&gt;&gt;    SPIs, and those SPIs are changing in hibernate 5. So WildFly (well<br>
&gt;&gt;    currently JIPPAJAPPA) needs an update to be compatible with them.<br>
&gt;&gt;    Additionally we have the Jandex 2 change which is pending that both<br>
&gt;&gt;    projects are attempting to align on.<br>
&gt;&gt;<br>
&gt;&gt;    Now what I am not sure about, Scott will have to answer this. Is if<br>
&gt;&gt;    you can use the standard JPA integration SPI with newer versions of<br>
&gt;&gt;    Hibernate and just live with the nastiness it brings.<br>
&gt;&gt;<br>
&gt;&gt;    However, there is still a secondary issue, which I am sure you<br>
&gt;&gt;    already know about is that the second level cache and hibernate<br>
&gt;&gt;    search have integrations that need to be compatible and in sync and<br>
&gt;&gt;    tested.<br>
&gt;&gt;<br>
&gt;&gt;     &gt; On May 28, 2015, at 5:30 AM, Sanne Grinovero &lt;<a href="mailto:sanne@hibernate.org">sanne@hibernate.org</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:sanne@hibernate.org">sanne@hibernate.org</a>&gt;&gt; wrote:<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; Could someone explain please, why it&#39;s hard to have a deployer just<br>
&gt;&gt;     &gt; use a different JPA implementor which the user might want to provide?<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; I&#39;m pretty sure I know how to start a JPA context in plain<br>
&gt;&gt;    JavaSE, and<br>
&gt;&gt;     &gt; don&#39;t need to know which implementor version I&#39;m going to use, other<br>
&gt;&gt;     &gt; than for sake of configuration.<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; The WildFly documentation mentions this property<br>
&gt;&gt;     &gt; &quot;jboss.as.jpa.providerModule&quot;, which sounds great on paper and it<br>
&gt;&gt;     &gt; would be a nice usability improvement if it would also actually work<br>
&gt;&gt;     &gt; as it suggests.<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; There&#39;s plenty of evidence on StackOverflow that the current<br>
&gt;&gt;     &gt; limitations are unexpected. For example, Spring moved to Hibernate 5<br>
&gt;&gt;     &gt; and people won&#39;t be able to use your stable line of the application<br>
&gt;&gt;     &gt; server with Spring; I&#39;d hope we could implement a plan to prevent<br>
&gt;&gt;    this<br>
&gt;&gt;     &gt; from happening at the next upgrade cycles.<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; Thanks,<br>
&gt;&gt;     &gt; Sanne<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; On 21 May 2015 at 20:10, Scott Marlow &lt;<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>&gt;&gt; wrote:<br>
&gt;&gt;     &gt;&gt;<br>
&gt;&gt;     &gt;&gt;<br>
&gt;&gt;     &gt;&gt; On 05/21/2015 03:05 PM, Tomaž Cerar wrote:<br>
&gt;&gt;     &gt;&gt;&gt; Scott,<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt; if you do one last jipijapa release that adds &quot;support&quot; for<br>
&gt;&gt;    hibernate5<br>
&gt;&gt;     &gt;&gt;&gt; hibernate guys could take that version and override it in<br>
&gt;&gt;    wildfly 9 same<br>
&gt;&gt;     &gt;&gt;&gt; way as they add new h5 modules.<br>
&gt;&gt;     &gt;&gt;<br>
&gt;&gt;     &gt;&gt; I assume this will be an iterative process but sure, we could<br>
&gt;&gt;    also push<br>
&gt;&gt;     &gt;&gt; a release of the JIPI-31 branch.  Lets keep talking about what<br>
&gt;&gt;    is needed...<br>
&gt;&gt;     &gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt; --<br>
&gt;&gt;     &gt;&gt;&gt; tomaz<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt; On Thu, May 21, 2015 at 9:01 PM, Scott Marlow<br>
&gt;&gt;    &lt;<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a> &lt;mailto:<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>&gt;<br>
&gt;&gt;     &gt;&gt;&gt; &lt;mailto:<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a> &lt;mailto:<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>&gt;&gt;&gt; wrote:<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;    On 05/21/2015 02:11 PM, Emmanuel Bernard wrote:<br>
&gt;&gt;     &gt;&gt;&gt;&gt; Scott, No way to make ORM 5 work in 9 at all? With the user<br>
&gt;&gt;    setting the additional slotted modules of course.<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt; <a href="https://github.com/scottmarlow/jipijapa/tree/JIPI-31" target="_blank">https://github.com/scottmarlow/jipijapa/tree/JIPI-31</a> contains the<br>
&gt;&gt;     &gt;&gt;&gt;    integration code that we will look at merging into WildFly<br>
&gt;&gt;    10.  Are you<br>
&gt;&gt;     &gt;&gt;&gt;    looking for a custom WildFly 9.x branch or actual changes in<br>
&gt;&gt;    WildFly 9<br>
&gt;&gt;     &gt;&gt;&gt;    (doesn&#39;t seem as likely to me but I don&#39;t control the schedule)?<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt; It would help speed up the Hibernate 5 stream adoption and avoid<br>
&gt;&gt;     &gt;&gt;&gt;    a lot of duplicated work for 6+ months.<br>
&gt;&gt;     &gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; On 21 mai 2015, at 16:36, Scott Marlow &lt;<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>&gt;<br>
&gt;&gt;     &gt;&gt;&gt;    &lt;mailto:<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a> &lt;mailto:<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>&gt;&gt;&gt; wrote:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; Hibernate ORM 5.0 doesn&#39;t work yet on WildFly.  Will push on<br>
&gt;&gt;     &gt;&gt;&gt;    this soon<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; for WildFly 10.<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; On 05/21/2015 07:30 AM, Sanne Grinovero wrote:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Hi all,<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; I&#39;m attempting to deploy some integration tests on WildFly<br>
&gt;&gt;     &gt;&gt;&gt;    9.0.0.CR1<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; to use a preview of Hibernate ORM version 5.<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; It seems the JPA deployer isn&#39;t allowing me to run such<br>
&gt;&gt;     &gt;&gt;&gt;    experiments:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; # First experiment - providerModule set to custom module<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; In my first attempt, I create a custom set of jboss modules<br>
&gt;&gt;    which<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; include the snapshot builds of ORM 5, add them to my<br>
&gt;&gt;    standalone WF9<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; instance and set the persistence.xml property:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;  jboss.as.jpa.providerModule = my-custom-module-name<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; and then get:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Caused by: java.util.ServiceConfigurationError:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; org.hibernate.integrator.spi.Integrator: Provider<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; org.hibernate.envers.boot.internal.EnversIntegrator not a<br>
&gt;&gt;    subtype<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at java.util.ServiceLoader.fail(ServiceLoader.java:231)<br>
&gt;&gt;     &gt;&gt;&gt;    [rt.jar:1.7.0_51]<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at java.util.ServiceLoader.access$300(ServiceLoader.java:181)<br>
&gt;&gt;     &gt;&gt;&gt;    [rt.jar:1.7.0_51]<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:369)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; [rt.jar:1.7.0_51]<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at java.util.ServiceLoader$1.next(ServiceLoader.java:445)<br>
&gt;&gt;     &gt;&gt;&gt;    [rt.jar:1.7.0_51]<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.loadJavaServices(ClassLoaderServiceImpl.java:341)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.hibernate.integrator.internal.IntegratorServiceImpl.&lt;init&gt;(IntegratorServiceImpl.java:57)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.build(BootstrapServiceRegistryBuilder.java:247)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.buildBootstrapServiceRegistry(EntityManagerFactoryBuilderImpl.java:520)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.&lt;init&gt;(EntityManagerFactoryBuilderImpl.java:208)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.&lt;init&gt;(EntityManagerFactoryBuilderImpl.java:188)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:45)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:57)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.&lt;init&gt;(TwoPhaseBootstrapImpl.java:38)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.hibernate4.HibernatePersistenceProviderAdaptor.getBootstrap(HibernatePersistenceProviderAdaptor.java:173)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.createContainerEntityManagerFactoryBuilder(PhaseOnePersistenceUnitServiceImpl.java:243)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.access$800(PhaseOnePersistenceUnitServiceImpl.java:60)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:118)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; ... 7 more<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Clearly it looks like I&#39;m being served classes from the bundled<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Hibernate 4.x implementation - on top of those from the<br>
&gt;&gt;    module I&#39;m<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; requesting. This isn&#39;t what the deployer should be doing, right?<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; # Second experiment - use the &quot;application provided&quot;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; In this case I hope to hint the JPA  deployer to not add the<br>
&gt;&gt;     &gt;&gt;&gt;    default<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; implementor but look for a JPA implementation within my<br>
&gt;&gt;    deployment,<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; but still package my custom Hibernate build as a module.<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;  - use the same custom module containing Hibernate ORM 5 (a<br>
&gt;&gt;     &gt;&gt;&gt;    preview snapshot)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;  - Add a &quot;Dependency:&quot; section to the manifest to import (and<br>
&gt;&gt;     &gt;&gt;&gt;    export)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; my custom module<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;  - set the &quot;jboss.as.jpa.providerModule&quot; property to value<br>
&gt;&gt;     &gt;&gt;&gt;    &quot;application&quot;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; This gets me:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Caused by:<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.server.deployment.DeploymentUnitProcessingException:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; WFLYJPA0027: Persistence provider module load error application<br>
&gt;&gt;     &gt;&gt;&gt;    (class<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; org.hibernate.jpa.HibernatePersistenceProvider)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:985)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:267)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleWarDeployment(PersistenceUnitServiceHandler.java:200)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:131)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; [wildfly-server-1.0.0.CR1.jar:1.0.0.CR1]<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; ... 5 more<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Caused by: org.jboss.modules.ModuleNotFoundException:<br>
&gt;&gt;     &gt;&gt;&gt;    application:main<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;    org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:236)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; [jboss-modules.jar:1.4.3.Final]<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.persistenceprovider.PersistenceProviderLoader.loadProviderModuleByName(PersistenceProviderLoader.java:65)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; at<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:978)<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; ... 10 more<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Remarks:<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;  - it&#39;s attempting to load the &quot;application:main&quot; module?!<br>
&gt;&gt;     &gt;&gt;&gt;    that&#39;s not<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; what I&#39;d expect from reading [1]<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; This seems to be a bug.  I hit it a few days ago when I packaged<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; Hibernate ORM 4.1.x with an application (in a unit test) and<br>
&gt;&gt;     &gt;&gt;&gt;    forgot to<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; set the persistence provider in persistence.xml.<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;  - the provider should be available to the deployment<br>
&gt;&gt;     &gt;&gt;&gt;    classpath, so<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; I&#39;m not sure why it&#39;s not finding the Provider? (I&#39;m even<br>
&gt;&gt;    exporting<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; it, although I&#39;m not sure if that was required).<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; Providers are always found through the<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; javax.persistence.spi.PersistenceProviderResolver, not directly<br>
&gt;&gt;     &gt;&gt;&gt;    from the<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; deployment classpath.<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Any suggestions to get this running please?<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Also I wonder if some of these should warrant opening a JIRA,<br>
&gt;&gt;     &gt;&gt;&gt;    but I&#39;m<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; not sure how far I misunderstood the intentions of these JPA<br>
&gt;&gt;     &gt;&gt;&gt;    deployer<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; properties.<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; Lets talk in a few days again on IRC.<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Thanks,<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; Sanne<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt;&gt; [1] -<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;    <a href="https://docs.jboss.org/author/display/WFLY9/JPA+Reference+Guide#JPAReferenceGuide-Persistenceunitproperties" target="_blank">https://docs.jboss.org/author/display/WFLY9/JPA+Reference+Guide#JPAReferenceGuide-Persistenceunitproperties</a><br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; wildfly-dev mailing list<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;<br>
&gt;&gt;    &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;&gt;     &gt;&gt;&gt;    _______________________________________________<br>
&gt;&gt;     &gt;&gt;&gt;    wildfly-dev mailing list<br>
&gt;&gt;     &gt;&gt;&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;<br>
&gt;&gt;    &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt;&gt;    &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt;&gt;<br>
&gt;&gt;     &gt;&gt; _______________________________________________<br>
&gt;&gt;     &gt;&gt; wildfly-dev mailing list<br>
&gt;&gt;     &gt;&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;<br>
&gt;&gt;     &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; _______________________________________________<br>
&gt;&gt;     &gt; wildfly-dev mailing list<br>
&gt;&gt;     &gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;<br>
&gt;&gt;     &gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;&gt;<br>
&gt;&gt;    --<br>
&gt;&gt;    Jason T. Greene<br>
&gt;&gt;    WildFly Lead / JBoss EAP Platform Architect<br>
&gt;&gt;    JBoss, a division of Red Hat<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;    _______________________________________________<br>
&gt;&gt;    wildfly-dev mailing list<br>
&gt;&gt;    <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>&gt;<br>
&gt;&gt;    <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; wildfly-dev mailing list<br>
&gt;&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;&gt;<br>
<br>
--<br>
Jason T. Greene<br>
WildFly Lead / JBoss EAP Platform Architect<br>
JBoss, a division of Red Hat<br>
<br>
</div></div></blockquote></div><br></div>