Community
Participate
Working Groups
Created attachment 202820 [details] JbossArchiveFactoryImpl override class. When attempting to implement JPA, we came across a bug with JBoss 5.1.0. When attempting to read the persistence.xml, the file was not found. We found it was related to the URL being passed in from JBoss. It is vfsfile:///path/to/file/persistence.xml. The Eclipselink code does not read vfsfile format. We should mention this is related to an exploded EAR implementation where the .ear file is exploded on the file system. To work around this we had to implement an ArchiveFactoryImpl to read the file format. To override the ArchiveFactory: -Declipselink.archive.factory=<New ArchiveFactoryImpl> File attached.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink