Community
Participate
Working Groups
The root cause seems to be that ArchiveFactoryImpl does not recoginize "bundleresource" as a jar protocol and so returns a URLArchive. Searching for non-listed classes is done by calling getEntries() on the archive which in the case of URLArchive returns Collections.EMPTY_LIST.iterator() so no classes are examined. CompositeClassLoader.getEntries() should also be examined to ensure it will return a composite Iterator that aggregates the results of getEntries() from the component ClassLoaders.
Original summary: "exclude-unlisted-classes=false does not work in OSGi". Bug renamed to focus on root cause.
*** This bug has been marked as a duplicate of bug 329381 ***
I still can reproduce the issue with EclipseLink 2.2.0.v20110202-r8913. This bug should be re-openend.
The bug has been fixed in the context of Gemini JPA OSGi support, not EclipseLink OSGi. EclipseLink's pre-OSGi Enterprise Spec JPA support is deprecated in 2.3 and we recommend you move to Gemini JPA for OSGi spec compliant support.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink