Noob having problems with tool (getting java.util.zip.ZipExcepiton)

Douglas WF Acheson <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hello,

  I am very new to using Xdoclet, I was introduced to it on my last project and thought I would learn a bit more.  Here is the scenario:  I have created a SSB, the three parts (home, impl, and interface), and want to generate a DD (ejb-jar.xml) from my marked up java code.  The error I am getting is:

... <snip snip> ...
[ejbdoclet] java.util.zip.ZipException: error in opening zip file
[ejbdoclet] at java.util.zip.ZipFile.open(Native Method)
[ejbdoclet] at java.util.zip.ZipFile.<init>(ZipFile.java:203)
[ejbdoclet] at java.util.zip.ZipFile.<init>(ZipFile.java:234)
[ejbdoclet] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:919)
[ejbdoclet] at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:832)
[ejbdoclet] at org.apache.log4j.helpers.Loader.getResource(Loader.java:91)
[ejbdoclet] at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
[ejbdoclet] at org.apache.log4j.Category.getInstance(Category.java:514)
[ejbdoclet] at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:153)
[ejbdoclet] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)
[ejbdoclet] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
[ejbdoclet] at xdoclet.util.LogUtil.getLog(LogUtil.java:26)
[ejbdoclet] at xdoclet.loader.ModuleFinder.findModules(ModuleFinder.java:116)
[ejbdoclet] at xdoclet.DocletTask.registerModules(DocletTask.java:545)
[ejbdoclet] at xdoclet.DocletTask.createDynamicElement(DocletTask.java:336)
... <snip snip> ...
 
And it goes not for a while.  


This is my marked up java (at a class level)

/**
 * 
 * @author 192607828
 *
 * @ejb.bean
 *        name = "SSEJBTest"
 *        type = "Stateless"
 *        jndi-name = "dwfa"
 *        view-type = "remote"
 *        description = "dwfa test"
 *        display-name = "buhha"
 *
 * ejb:transaction
 *     type="Required"
 *
 * ejb:home
 *         remote-class = "ca.dwfa.ejb.SSEBJTestHome"
 *        gernerate = "false"
 *
 * ejb:interface
 *         remote-class = "ca.dwfa.ejb.SSEBJTest"
 *        gernerate = "false"
 */

And here is my Ant script ...

<project name="EJB Test" default="info" basedir=".">

    <tstamp>
        <format property="TODAY" pattern="d-MM-yy" />
    </tstamp>

    <target name = "info">
        <echo>We are using Ant version [${ant.version}]</echo>
        <echo>We are using Java version [${java.version}]</echo>
        <echo>We are using Java from [${java.home}]</echo>
    </target>

    <path id = "classpath">
        <fileset dir = "${basedir}/src/main/java">
            <include name = "**/ejb/**/*.java"/>
        </fileset>
        <fileset dir = "C:/Apps/Java/jee/v1.3.1/lib">
            <include name = "j2ee.jar"/>
        </fileset>
        <fileset dir = "C:/Apps/Java/Xdoclet/v1.2.3/lib">
            <include name = "xdoclet-1.2.3.jar"/>
            <include name = "xdoclet-ejb-module-1.2.3.jar"/>
            <include name = "xjavadoc-1.1.jar"/>
            <include name = "commons-collections-2.0.jar"/>
            <include name = "commons-logging.jar"/>
            <include name = "log4j.jar"/>
        </fileset>
    </path>

    <taskdef name = "ejbdoclet" classname = "xdoclet.modules.ejb.EjbDocletTask" classpathref="classpath" />
    
    <target name = "ejbDD" depends = "info">

        <ejbdoclet excludedtags = "@version,@author" addedtags="@xdoclet-generated at ${TODAY}" ejbspec="2.0">

        </ejbdoclet>
    </target>
</project>

I have not idea why this is happening :-(.  I am including a zip file that contains all my stuff and a run of ANT target with -verbose ...

Regards,
Douglas WF Acheson

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
files.tgz (application/x-compressed, 12.7 KB) - not displayed
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.