JBOSS GA5 部署EJB时报 Failed to resolve schema nsURI= location=persistence

 

DEPLOYMENTS IN ERROR:

org.jboss.xb.binding.JBossXBRuntimeException: Failed to resolve schema nsURI= location=persistence

 

 

 

在 JBOSS 4 中  persistence.xml 写法

<persistence>
……
</persistence>

 

 

在 JBOSS 5 中 persistence.xml 写法

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

……

</persistence>

你可能感兴趣的:(location)