With the patch applied, I am now seeing this exception deploying a jpa app in WF10;
21:57:47,567 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool – 55) MSC000001: Failed to start service jboss.persistenceunit."app.ear/app.jar#pu"._FIRST_PHASE: org.jboss.msc.service.StartException in service jboss.persistenceunit."app.ear/app.jar#pu".FIRST_PHASE_: java.lang.IllegalArgumentException: interface javax.persistence.Entity is not visible from class loader at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:121) at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:103) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:666) [wildfly-elytron-1.0.0.Alpha1.jar:1.0.0.Alpha1] at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1.run(PhaseOnePersistenceUnitServiceImpl.java:130) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45] at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: java.lang.IllegalArgumentException: interface javax.persistence.Entity is not visible from class loader at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:581) [rt.jar:1.8.0_45] at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557) [rt.jar:1.8.0_45] at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230) [rt.jar:1.8.0_45] at java.lang.reflect.WeakCache.get(WeakCache.java:127) [rt.jar:1.8.0_45] at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419) [rt.jar:1.8.0_45] at java.lang.reflect.Proxy.getProxyClass(Proxy.java:371) [rt.jar:1.8.0_45] at org.hibernate.annotations.common.annotationfactory.AnnotationFactory.create(AnnotationFactory.java:46) at org.hibernate.cfg.annotations.reflection.JPAOverriddenAnnotationReader.getEntity(JPAOverriddenAnnotationReader.java:2668) at org.hibernate.cfg.annotations.reflection.JPAOverriddenAnnotationReader.initAnnotations(JPAOverriddenAnnotationReader.java:338) at org.hibernate.cfg.annotations.reflection.JPAOverriddenAnnotationReader.isAnnotationPresent(JPAOverriddenAnnotationReader.java:310) at org.hibernate.annotations.common.reflection.java.JavaXAnnotatedElement.isAnnotationPresent(JavaXAnnotatedElement.java:60) at org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.<init>(AnnotationMetadataSourceProcessorImpl.java:115) at org.hibernate.boot.internal.MetadataBuildingProcess$2.<init>(MetadataBuildingProcess.java:151) at org.hibernate.boot.internal.MetadataBuildingProcess.build(MetadataBuildingProcess.java:145) at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:396) at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:82) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:180) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:146) at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:28) at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:40) at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.<init>(TwoPhaseBootstrapImpl.java:39) at org.jboss.as.jpa.hibernate5.HibernatePersistenceProviderAdaptor.getBootstrap(HibernatePersistenceProviderAdaptor.java:172) at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.createContainerEntityManagerFactoryBuilder(PhaseOnePersistenceUnitServiceImpl.java:243) at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl.access$800(PhaseOnePersistenceUnitServiceImpl.java:60) at org.jboss.as.jpa.service.PhaseOnePersistenceUnitServiceImpl$1$1.run(PhaseOnePersistenceUnitServiceImpl.java:118)
|