Apaprently Glassfish mess up with the thread current class loader on redeployment
Here is the culprit line
Enumeration<URL> xmls = Thread.currentThread()
.getContextClassLoader()
.getResources( "META-INF/persistence.xml" );
[Message sent by forum member 'tmv' (tmv)]