-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
7.1.0.GA
-
Migration, Compatibility/Configuration
-
-
-
-
-
-
I am trying to deploy application that uses Hibernate 4 on EAP 7. When the application is deployed, JPA entity auto scan does not detect any entity classes.
From what I managed to discover, the issue is with the org.hibernate.jpa.boot.archive.internal.JarInputStreamBasedArchiveDescriptor. Inside the visitArchive method there is the following code fragment:
jarInputStream = new JarInputStream( getArchiveUrl().openStream() );
The input stream does not contain any data and the:
while ( ( jarEntry = jarInputStream.getNextJarEntry() ) != null ) { .. }
loop never executes because there are no jar entries. I believe the issue is somehow related to VFS and the VirtualJarInputStream.
I attached a sample Maven Eclipse project. It should fail with the Caused by: java.lang.IllegalArgumentException: Not an entity: class org.jboss.tools.examples.model.Member exception.
The same issue exists on Wildfly 11 too.