openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <>
Subject Re: Dynamic class enhancer and Java 5
Date Fri, 05 Jun 2009 17:59:48 GMT

Pinaki - 

If I remember correctly, we are at the mercy of the order that the
classloader returns the p.xml files. As the message states, the first one
encountered wins. So if you're not first, you're last.


Pinaki Poddar wrote:
> ...
>   Got scores of them all over. But I really liked the following message:
> 31  default  WARN   [main] openjpa.Runtime - The persistence unit
> "default" was found multiple times in the following resources
> "[file:/C:/projects/fields-enum/src/conf/META-INF/persistence.xml,
> file:/C:/projects/fields-enum/build/conf/META-INF/persistence.xml]", but
> persistence unit names should be unique. The first persistence unit
> matching the provided name in
> "file:/C:/projects/fields-enum/src/conf/META-INF/persistence.xml" is being
> used.    
>   By the way, what is the criteria you use to pick up one persistence.xml
> over other when multiple PUs exist of same name?

View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message