JBoss Stops Responding For Time Period
Somehting you will notice if you are running JBoss from behind a firewall is that it can take a long time to respond to some events.
This is becasue JBoss is trying to resolve external references to xsd files.
You should see messages similar to this in your log files
16:07:03,071 WARN [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd
To get around this and to speed things up you need to change the reference in persistence.xml to a local xsd file
Download persistence_2_0.xsd, and place it in your META-INF folder.
Change persistence.xml to point to local file reference