[quote] Hi all,
We tried to use JPA with hibernate in WLS9.2 and after some ime, I get the following exception thrown.
(org.hibernate.util.DTDEntityResolver) - trying to resolve system-id [http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd]
[Feb 15 19:10:21] DEBUG (org.hibernate.cfg.EJB3DTDEntityResolver) - recognized EJB3 ORM namespace; attempting to resolve on classpath under org/hibernate/ejb
The following are my configurations
WLS version : 10.0 (not sure of service pack. I have asked systems team to give some info on this)
Hibernate version : 3.0 (hibernate3.jar)
Environment : Linux
persistence_1_0.xsd file is available in hibernate-entitymanager.jar
The following is the snap shot of my persistence.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<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/ ... ce_1_0.xsd"
version="1.0">
<persistence-unit name="userDatabase" transaction-type="JTA">
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
<jta-data-source>PNDataSource</jta-data-source>
<class>..... </class>
</persistence-unit>
</persistence>
[/quote]