Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » eclipselink doesn't find my persistence.xml
eclipselink doesn't find my persistence.xml [message #538027] Fri, 04 June 2010 10:43 Go to next message
Eclipse UserFriend
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?
Re: eclipselink doesn't find my persistence.xml [message #538470 is a reply to message #538027] Mon, 07 June 2010 12:56 Go to previous messageGo to next message
Eclipse UserFriend
Make sure that the eclipselink.jar is on your classpath.

Otherwise, please include your persistence.xml and the exception stack trace.
Re: eclipselink doesn't find my persistence.xml [message #538721 is a reply to message #538027] Tue, 08 June 2010 09:32 Go to previous message
Eclipse UserFriend
i got some help from the mailing list, but i finally found a solution on my own.
thanks anyway

this thread could be closed

[Updated on: Tue, 08 June 2010 09:33] by Moderator

Previous Topic:HistoryPolicy: INSERT Error with missing fields
Next Topic:XML Composite Object Mapping problem
Goto Forum:
  


Current Time: Thu Jul 24 21:01:20 EDT 2025

Powered by FUDForum. Page generated in 0.08016 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top