[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] eclipselink doesn't find my persistence.xml
|
Do you see this problem when running a simple JPA program, or just when trying
to generate a cannonical model?
How is your application configured?
- JavaSE? Jave EE(which server)?
- Where is your persistence unit jar/directory?
- Where is your persistence.xml?
- What does your persistence.xml look like?
- Are all those things on your classpath?
- How are you getting the EntityManagerFactory/EntityManager?
-Tom
Steffen Förster wrote:
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?
------------------------------------------------------------------------
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users