This blog contains information about system integration, infrastructure, data exchange, middleware and cloud computing. Getting to grips with Cloud Computing, Web Services, SOA, ESB, MOM, EIA, Application Integration and more.
Tuesday, April 17, 2012
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
Like this
Step 1:
Download persistence_2_0.xsd, and place it in your META-INF folder.
Step 2:
Change persistence.xml to point to local file reference
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="file://persistence_2_0.xsd
http://java.sun.com/xml/ns/persistence">
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment