MyThinkPond

On Java, Python, Groovy, Grails, Spring, Node.js, Linux, Arduino, ARM, Embedded Devices & Web

Archive for the ‘JBoss AS6’ Category

JBoss AS6 – Failed to resolve schema nsURI= location=persistence

Posted by Venkatt Guhesan on August 26, 2010

If you encounter the following error when deploying under JBoss AS6:
“Failed to resolve schema nsURI= location=persistence”

The chances are that you are missing the name-space for the persistence.xml file. So examine your persistence.xml file and replace the <persistence> tag with the following:


<persistence
 xmlns="http://java.sun.com/xml/ns/persistence"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
 http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
 version="1.0">

And this should help you get rid of the above error.

cheers.

Posted in Java, JBoss AS6 | 1 Comment »