Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] eclipselink doesn't find my persistence.xml

Hello there I'm new here.

I am using EL nightly 20100604 under jdk1.6_20. If I start my programm directly through Eclipse it works fine.
When I start the jar of this programm it doesn't find the persistence.xml outside (but in the classpath).

Some more information:
PersistenceUnitProperties.ECLIPSELINK_PERSISTENCE_XML is set to the canonical path of the file.
The file must be out of the jar, because it should be rebuilt before EL starts.

I figured out, that the PersistenceUnitProcessor calls loader.getResources(descriptorPath). It returns almost the right, but index of the CompoundEnumeration is set to 2. So EL ignores the PU entries of my file and I get a PersistenceException "No Persistence provider for EntityManager named"

Has anyone an idea what to do? Should I file a bug?


Back to the top