-->
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.  [ 2 posts ] 
Author Message
 Post subject: [hbm2java] java.util.zip.ZipException: error in opening zip
PostPosted: Sun Mar 27, 2005 6:33 pm 
Newbie

Joined: Fri Mar 25, 2005 1:45 pm
Posts: 10
When I try to generate the classes for betterpetshop I get the following error:


<target name="hbm2java" description="Generate .java from .hbm files.">
<taskdef
name="hbm2java"
classname="org.hibernate.tool.hbm2java.Hbm2JavaTask"
classpathref="class.path"
/>

<hbm2java config="${src.dir}/hbm2java.xml" output="${src.dir}/johnmammen/betterpetshop/service/dao/hibernate" classpathref="class.path" >
<fileset dir="${src.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</hbm2java>
</target>

where classpathref is defined through

<path id="class.path">
<fileset dir="${lib.dir}"></fileset>
<fileset dir="${tomcat.home}/common/lib"></fileset>
</path>

where lib.dir is the direcotory where all jar files reside.

Help is much appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 28, 2005 12:18 pm 
Newbie

Joined: Mon Oct 18, 2004 7:59 am
Posts: 10
Location: Netherlands
Such an error I recently had, it turned out that some class path referenced class files directly instead of the directories. Try to run "
Code:
ant -verbose
", maybe you can see where the error occurs.

hth -
Marc


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.