Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
20.0.1.Final
-
None
Description
Wildlfy passes a PersistenceUnitInfo object to JPA provider using vfs URL as persistenceUnitRootUrl, e.g.,
vfs:/C:/wildfly-20.0.1.Final/bin/content/foo.ear/myejb.jar/
A JPA provider can not resolve this URL without using a third-party library and thus force
the JPA provider to have dependency on 3rd party libraries or wildfly.
The vfs url should be resolved to a plain file or jar URL that actually exists on file system before passing the URL to a JPA provider when creating an EntityManagerFactory.