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">

Comments

Popular posts from this blog

Basic Send Message to MQ with Java and IBM MQ JMS

Basic Receive Message to MQ with Java and IBM MQ JMS

Creating a simple Alert / Success Message with ASP.NET/VB using Bootstrap