-->
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: Problems with ant task SchemaExport
PostPosted: Thu Jun 24, 2004 11:39 am 
Newbie

Joined: Fri Oct 17, 2003 6:11 am
Posts: 15
Hi,

I'm traing to use the ant task "SchemaExportTask" to generate the sql DB schema, but I have a problem that I can't understand...
I'm using the last release (2.1.4).
Do anyone help me?
bye Stefano

Here part of the error log:
Buildfile: build.xml
schemaexport:
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 25, 2004 5:05 am 
Regular
Regular

Joined: Tue Oct 07, 2003 10:20 am
Posts: 77
You've declared your classpath entry incorrectly, and have put a fileset element pointing to your java classes (probably your POJO classes). It's basically trying to unzip your class files. To fix it you need to specify the location of your classes using pathelement instead, with the location pointing to the base directory of your package. For example:

Code:
<path id="hibernate-schema-classpath">
    <fileset dir="${basedir}/libraries">
        <include name="**/*.jar"/>
        <include name="**/*.zip"/>
    </fileset>
    <pathelement location="${hibernate-pojo-classes}" />
</path>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 2:29 am 
Newbie

Joined: Wed Nov 30, 2005 6:43 pm
Posts: 1
Had the same problem, fixed it for me. Thanks!

-steve


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.