I get this exception when I run hibernate, javac , schemaexport as separate targets. If I combine them in one target, there is no exception.
Hibernate version:
3.0alpha (also occurs with 2.1)
Ant excerpt:
<taskdef name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask">
<classpath>
<fileset dir="${xdoclet.lib.home}">
<include name="*.jar"/>
</fileset>
<fileset dir="${tomcat.home}\common\lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</taskdef>
<taskdef name="schemaexport" classname="org.hibernate.tool.hbm2ddl.SchemaExportTask">
<classpath>
<fileset dir="${hibernate.home}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${dest}"/>
</classpath>
</taskdef>
<target name="hibernate" depends="clean,prepare"
description="Generates Hibernate class descriptor files.">
<!-- Execute the hibernatedoclet task -->
<hibernatedoclet
destdir="${dest}"
excludedtags="@version,@author,@todo"
force="true"
verbose="true"
mergedir="${dest}">
<fileset dir="${prototype.home}\src">
<include name="**/*.java"/>
</fileset>
<hibernate version="2.0"/>
<hibernatecfg dataSource="java:comp/env/jdbc/sdm"
showSql="false"
dialect="org.hibernate.dialect.MySQLDialect"
destDir="${dest}" />
</hibernatedoclet>
</target>
<target name="compile" depends="hibernate">
<javac srcdir="${prototype.home}\src" destdir="${dest}" >
<classpath>
<fileset dir="${java.lib.home}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${hibernate.home}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${tomcat.home}\common\lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="schemagen" depends="compile">
<schemaexport properties="hibernate.properties"
quiet="no" text="false" drop="false" delimiter=";"
output="${dest}\installation.sql">
<fileset dir="${dest}" includes="**/*.hbm.xml"/>
</schemaexport>
</target>
Full stack trace of any exception that occurs:
compile:
[javac] Compiling 6 source files to C:\jakarta-tomcat-5.0.29\webapps\prototype\WEB-INF\classes
schemagen:
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] java.util.zip.ZipException: error in opening zip file
[schemaexport] at java.util.zip.ZipFile.open(Native Method)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[schemaexport] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
[schemaexport] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
[schemaexport] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[schemaexport] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[schemaexport] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
[schemaexport] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[schemaexport] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[schemaexport] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[schemaexport] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
[schemaexport] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
[schemaexport] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
[schemaexport] at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:92)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:182)
[schemaexport] at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[schemaexport] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[schemaexport] 10:54:47,109 INFO - Hibernate 3.0 alpha
[schemaexport]
[schemaexport] 10:54:47,109 INFO - loaded properties from resource hibernate.properties: {hibernate.connection.usernam
e=sdmuser, hibernate.connection.password=sdmuser, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=org.h
ibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql:///sdmdb, hibernate.connection.driver_class=com.mysql
.jdbc.Driver}
[schemaexport]
Name and version of the database you are using:
MySql
|