Jonathan Scott
2004-08-08 23:50:05 UTC
Hello,
I am curious if anyone else has noticed that MiddleGen tries open all files in my CLASSPATH as if they were a .zip file. For instance it is trying to open jmf.properties as if it were a jar/zip file to be loaded and throws the exception below. Any help would be greatly appreciated.
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:128)
at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
at java.lang.Class.getResource(Class.java:1352)
at middlegen.plugins.hibernate.HibernatePlugin.registerFileProducers(Unknown Source)
at middlegen.Plugin.generate(Plugin.java:509)
at middlegen.Middlegen.writeSource(Middlegen.java:415)
at middlegen.MiddlegenTask.execute(MiddlegenTask.java:430)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.Main.start(Main.java:151)
at org.apache.tools.ant.Main.main(Main.java:241)
Jonathan Scott
I am curious if anyone else has noticed that MiddleGen tries open all files in my CLASSPATH as if they were a .zip file. For instance it is trying to open jmf.properties as if it were a jar/zip file to be loaded and throws the exception below. Any help would be greatly appreciated.
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:128)
at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:902)
at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:831)
at java.lang.Class.getResource(Class.java:1352)
at middlegen.plugins.hibernate.HibernatePlugin.registerFileProducers(Unknown Source)
at middlegen.Plugin.generate(Plugin.java:509)
at middlegen.Middlegen.writeSource(Middlegen.java:415)
at middlegen.MiddlegenTask.execute(MiddlegenTask.java:430)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.Main.start(Main.java:151)
at org.apache.tools.ant.Main.main(Main.java:241)
Jonathan Scott
--
Jonathan Scott, Programmer, Vanten K.K.
***@vanten.com Tel: 03-5919-0266
http://www.vanten.com Fax: 03-5919-0267
Jonathan Scott, Programmer, Vanten K.K.
***@vanten.com Tel: 03-5919-0266
http://www.vanten.com Fax: 03-5919-0267