-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: ZipException:The system cannot find the path specified
PostPosted: Thu Feb 21, 2008 9:34 pm 
Newbie

Joined: Tue Feb 19, 2008 2:30 pm
Posts: 10
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>


Top
 Profile  
 
 Post subject: Re: ZipException:The system cannot find the path specified
PostPosted: Fri Feb 22, 2008 12:42 pm 
Newbie

Joined: Tue Feb 19, 2008 2:30 pm
Posts: 10
I have made sure that I copied the database drivers to the lib directory (just the way I did for HelloWorld-Native application). I am sure there is a simple explanation for this. Please help!


Top
 Profile  
 
 Post subject: Re: ZipException:The system cannot find the path specified
PostPosted: Fri Jul 09, 2010 4:54 am 
Newbie

Joined: Fri Jul 09, 2010 4:52 am
Posts: 4
Use the org.hibernate.dialect.ProgressDialect dialect.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.