Hi I'm using hbm 4.0.1 jpa api.
Sometimes it stops working, opening logs to debug level, I have seen these messages:
Code:
.....
20120403 125208 INFO [org.hibernate.ejb.Version] (main) Hibernate EntityManager 3.4.0.GA
20120403 125208 DEBUG [org.hibernate.ejb.Ejb3Configuration] (main) Look up for persistence unit: appPerUnit
20120403 125208 DEBUG [org.hibernate.util.DTDEntityResolver] (main) trying to resolve system-id [http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd]
20120403 125223 DEBUG [org.hibernate.util.DTDEntityResolver] (main) trying to resolve system-id [http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd]
20120403 125320 DEBUG [org.hibernate.util.DTDEntityResolver] (main) trying to resolve system-id [http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd]
20120403 125403 DEBUG [org.hibernate.util.DTDEntityResolver] (main) trying to resolve system-id [http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd]
20120403 125434 DEBUG [org.hibernate.util.DTDEntityResolver] (main) trying to resolve system-id [http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd]
My persistence.xml is:
Code:
<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_2_0.xsd" version="2.0">
<persistence-unit name="appPerUnit" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<properties>
<property name="hibernate.hbm2ddl.auto" value="validate" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.use_sql_comments" value="true" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
</properties>
</persistence-unit>
</persistence>
Any Ideas to solve this ?
Seems it try to find the xsd on the Internet ... How can I stop this behaviour ?
Thanks in advance.
Stefano