Hibernate version: 3.2.6
Name and version of the database you are using: OpenEDGE 10.1B
I was able to run the example HelloWorld-Native application fine.
I am getting the following error message when I run the example HelloWorld-JPA example application:
Exception in thread "main" javax.persistence.PersistenceException: java.util.zip.ZipException: The system cannot find the path specified
at javax.persistence.Persistence.findAllProviders(Persistence.java:83)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
at hello.HelloWorld.main(Unknown Source)
I am unable to understand what I could be doing wrong. Please guide me!
Here's the persistence.xml file
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_1_0.xsd"
version="1.0">
<persistence-unit name="helloworld">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<!-- Not needed, Hibernate supports auto-detection in JSE
<class>hello.Message</class>
-->
<properties>
<property name="hibernate.archive.autodetection" value="class, hbm" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.connection.driver_class" value="com.ddtek.jdbc.openedge.OpenEdgeDriver" />
<property name="hibernate.connection.url" value="jdbc:datadirect:openedge://csiredhat:9001;databaseName=hibernate" />
<property name="hibernate.connection.username" value="howdoi" />
<property name="hibernate.connection.password" value="thisishow" />
<property name="hibernate.c3p0.min_size" value="5" />
<property name="hibernate.c3p0.max_size" value="20" />
<property name="hibernate.c3p0.timeout" value="300" />
<property name="hibernate.c3p0.max_statements" value="50" />
<property name="hibernate.c3p0.idle_test_period" value="3000" />
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
</properties>
</persistence-unit>
</persistence>