MyThinkPond

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

  • Recent Posts

    August 2017
    M T W T F S S
    « Jul    
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Subscribe Options

  • Awards

    JavaCodeGeeks
  • Most Valuable Blogger @ DZone
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 173 other followers

  • Follow MyThinkPond on WordPress.com
  • Blog Stats

    • 364,698 hits
  • General Options

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 »