MiddleGen opening non-zip files in CLASSPATH

Jonathan Scott <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Organization Vanten
Message-ID <[email protected]>
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

-- 
Jonathan Scott, Programmer, Vanten K.K.
[email protected]	Tel: 03-5919-0266
http://www.vanten.com	Fax: 03-5919-0267


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.