Hi!
Can anyone help me?
I have this error when I launch the task <ant middlegen>
Tools version:
- Middlegen-Hibernate-r5
- hibernate-3.0.5
- Oracle 9i
The first time I launch the task, middlegen generates perfectly the mapping files but since I updated WTP for Eclipse, I encounter this problem. Has it a relationship?
Indeed, there was a warning in the buid.xml.
[The file cannot be validated as a XML Schema.Can't find the ./config/database/oracle.xml ]
But the file exists!
init:
fail-if-no-xdoclet-1.2:
check-driver-present:
panic-if-driver-not-present:
middlegen:
[echo] Class path = D:\Projet\sources\varnat
[middlegen] java.util.zip.ZipException: invalid END header (bad central directory offset)
[middlegen] at java.util.zip.ZipFile.open(Native Method)
[middlegen] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[middlegen] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[middlegen] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
[middlegen] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:832)
[middlegen] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[middlegen] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[middlegen] at org.apache.log4j.Category.getInstance(Category.java:510)
[middlegen] at middlegen.Middlegen.<clinit>(Middlegen.java:108)
[middlegen] at middlegen.MiddlegenTask.<init>(MiddlegenTask.java:143)
[middlegen] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[middlegen] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[middlegen] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[middlegen] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:273)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:196)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:183)
[middlegen] at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:199)
[middlegen] at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:176)
[middlegen] at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:388)
[middlegen] at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:363)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[middlegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[middlegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[middlegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[middlegen] java.util.zip.ZipException: invalid END header (bad central directory offset)
[middlegen] at java.util.zip.ZipFile.open(Native Method)
[middlegen] at java.util.zip.ZipFile.<init>(ZipFile.java:112)
[middlegen] at java.util.zip.ZipFile.<init>(ZipFile.java:128)
[middlegen] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
[middlegen] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:832)
[middlegen] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[middlegen] at org.apache.log4j.LogManager.<clinit>(LogManager.java:96)
[middlegen] at org.apache.log4j.Category.getInstance(Category.java:510)
[middlegen] at middlegen.Middlegen.<clinit>(Middlegen.java:108)
[middlegen] at middlegen.MiddlegenTask.<init>(MiddlegenTask.java:143)
[middlegen] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[middlegen] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[middlegen] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[middlegen] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:273)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:196)
[middlegen] at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:183)
[middlegen] at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:199)
[middlegen] at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:176)
[middlegen] at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:388)
[middlegen] at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:158)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:363)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[middlegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[middlegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[middlegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[middlegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[middlegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[middlegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[middlegen] (middlegen.Middlegen 350 ) Registering plugin simple->middlegen.Plugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin java->middlegen.javax.JavaPlugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin plugin->middlegen.Plugin
BUILD FAILED
D:\Projet\sources\varnat\extras\Middlegen-Hibernate-r5\build.xml:153: Could not create type middlegen due to java.lang.IllegalStateException: Error looking for plugins:invalid END header (bad central directory offset)
Thanks
|