Ok. Now I have a core / hs_err file. It is definitely a glassfish / jvm / environment bug:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xffffffff7ec00878, pid=5675, tid=118
#
# JRE version: 6.0_14-b08
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.0-b16 mixed mode solaris-sparc )
# Problematic frame:
# C [libc_psr.so.1+0x878]
Stack: [0xfffffff1d7e00000,0xfffffff1d7f00000], sp=0xfffffff1d7ef7e00, free space=991k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc_psr.so.1+0x878]
C [libzip.so+0xe248]
C [libzip.so+0x28e8]
C [libzip.so+0x2d9c]
J java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J
J java.util.jar.JarFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;
j sun.net.www.protocol.jar.URLJarFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;+2
j sun.net.www.protocol.jar.JarURLConnection.connect()V+62
j sun.net.www.protocol.jar.JarURLConnection.getInputStream()Ljava/io/InputStream;+1
j java.net.URL.openStream()Ljava/io/InputStream;+4
j org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(Ljava/net/URL;Lorg/xml/sax/EntityResolver;)Lorg/w3c/dom/Document;+5
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J
J java.util.jar.JarFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;
j sun.net.www.protocol.jar.URLJarFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;+2
j sun.net.www.protocol.jar.JarURLConnection.connect()V+62
j sun.net.www.protocol.jar.JarURLConnection.getInputStream()Ljava/io/InputStream;+1
j java.net.URL.openStream()Ljava/io/InputStream;+4
j org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(Ljava/net/URL;Lorg/xml/sax/EntityResolver;)Lorg/w3c/dom/Document;+5
j org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(Ljava/net/URL;Ljava/util/Map;Lorg/xml/sax/EntityResolver;)Ljava/util/List;+2
If somehow the classloader is munging the deployed jar file after a redeployment, this would explain why the xml file seems corrupted. I have the full trace and a core file if someone more technical is interested in helping resolve this.
[Message sent by forum member 'h1d3m3' (h1d3m3_at_yahoo.com)]
http://forums.java.net/jive/thread.jspa?messageID=363402