Will the problem go away if you simplify your tag a bit?
<?xml version="1.0"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0"> ... </persistence>
I just ran into the same problem and fixed it using the above, but before that I just had
<persistence version="2.0">
as indicated in the OpenJpa manual.
source share