ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Oatham" <matthewoat...@hotmail.com>
Subject class not found - Classpath ignored?
Date Thu, 24 Apr 2003 07:54:51 GMT
Hi,

I am trying to run a doclet using the javadoc task - I have succesfully run 
other doclets but this one fails with the following erorr:

Javadoc execution
java.lang.NoClassDefFoundError: org/w3c/dom/Node
        at java.lang.Class.getMethod0(Native Method)
        at java.lang.Class.getMethod(Class.java:883)
        at 
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:167)
        at 
com.sun.tools.javadoc.DocletInvoker.optionLength(DocletInvoker.java:116)
        at com.sun.tools.javadoc.Main.main(Main.java:182)
Exception in thread "main"

I am running the following task:

    <path id="assethouse.ejb.doclet.classpath">
        <fileset dir="${build.lib}">
            <include name="tools.jar" />
            <include name="j2ee.jar" />
            <include name="crimson.jar" />
            <include name="jaas.jar" />
        </fileset>
        <pathelement location="${build.classes}" />
        <pathelement location="${src.dir}" />
    </path>

    <target name="run.assethouse.ejb.doclet" depends="assethouse.ejb.doclet" 
description="Run the AssetHouse EJB Deployment Descriptor doclet">
        <javadoc packagenames="com.assethouse.batchio" 
sourcepath="${src.dir}" public="true">
            <doclet 
name="com.assethouse.tools.doclets.ejb.EJBDeploymentDescriptorDoclet" 
path="${deployment.dir}/${assethouse.ejb.doclet.name}.jar">
                <param name="-ejbpackage" 
value="com.assethouse.assetserver.ejbeans" />
                <param name="-output" 
value="${assethouse.ejb.doclet.dest.dir}" />
            </doclet>
            <classpath refid="assethouse.ejb.doclet.classpath" />
        </javadoc>
    </target>

When running in verbose mode I can see:

[javadoc] '-classpath'  [javadoc] 
'C:\WorkArea\ANT\Build\lib\crimson.jar;C:\WorkArea\ANT\Build\lib\jaas.jar;C:\WorkArea\ANT\Build\lib\tools.jar;C:\WorkArea\ANT\Build\lib\j2ee.jar;C:\WorkArea\ANT\Build\classes;C:\WorkArea\ANT\Code'

Can anyone suggest what is wrong - like I said other doclets work, and this 
docelt runs with the same classpath from a .bat script

Cheers.

Matt




_________________________________________________________________
Express yourself with cool emoticons http://www.msn.co.uk/messenger


Mime
View raw message