My build.xml file is under D:/Project/website/ant/. I tried your suggestion
by copying the persistence.xml file one level up to
D:/Project/website/META-INF/ and redefine the ANT task to point to this
directory level - still got the same error. >-(
I have tried similar ANT tasks for OpenJPA and Hibernate using
D:/Project/website/WebContent/META-INF/persistence.xml and it works fine
which led me to conclude that there is a bug with the EclipseLink release.
Else, it would have failed for OpenJPA and Hibernate, too.
I can't believe something so simple as this can take so much time with
EclipseLink. It's disappointing!... Unfortunately, the company I worked for
already invested too much in EclipseLink so we can't moved off it. I wish I
could though...
Guy Pelletier wrote:
I'm suggesting copying the META-INF/persistence.xml to another level.
Based on previous emails you have something like:
D:/Project/website/WebContent/META-INF/persistence.xml
So copy META-INF/persistence.xml at different directory levels, e.g.
D:/Project/website/META-INF/persistence.xml
Where is your build.xml/ant task defined? Try adding
META-INF/persistence.xml off that directory. Basically, see if the
generator can find the file automatically from some other level (other
then where you have it now)