Erro Hibernate JPA

Boa tarde

Eu to fazendo uma aplicação utilizando o netbens 7.0.1 + hibernate jpa mas ta dando o seguinte erro na hora que eu mando rodar…

AVISO: Warning parsing XML: XML InputStream(2) schema_reference.4: Failed to read schema document 'http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

Aguardo resposta

cara,

verifica se seu persistence.xml ta com esse cabeçalho.

<persistence version="2.0" 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_2_0.xsd">

t+

Se estar usando o glassfish, é necessário habilitar o hibernate no servidor.