Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356834

Summary: VFSFile Processing on JBoss 5.1.0
Product: z_Archived Reporter: michaelbright
Component: EclipselinkAssignee: Project Inbox <eclipselink.utils-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
JbossArchiveFactoryImpl override class. none

Description michaelbright CLA 2011-09-06 12:11:16 EDT
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.
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:03:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink