MyThinkPond

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

  • Recent Posts

    August 2010
    M T W T F S S
    « Jul   Sep »
     1
    2345678
    9101112131415
    16171819202122
    23242526272829
    3031  
  • 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 175 other followers

  • Follow MyThinkPond on WordPress.com
  • Blog Stats

    • 366,804 hits
  • General Options

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.

Advertisements

One Response to “JBoss AS6 – Failed to resolve schema nsURI= location=persistence”

  1. Robby said

    This really is the second article, of your site I really checked
    out. Yet I personally like this one, “JBoss AS6 – Failed to resolve schema nsURI= location=persistence MyThinkPond” the most.

    Take care -Estela

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: