Bug 356834 - VFSFile Processing on JBoss 5.1.0
Summary: VFSFile Processing on JBoss 5.1.0
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 12:11 EDT by michaelbright CLA
Modified: 2022-06-09 10:03 EDT (History)
0 users

See Also:


Attachments
JbossArchiveFactoryImpl override class. (845 bytes, application/octet-stream)
2011-09-06 12:11 EDT, michaelbright CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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