XDoclet 1.2 requires Ant 1.5. It won't work with older Ant versions.

Ant 1.5 added the possibility to dynamically create sub elements of a task,
and XDoclet 1.2 uses that feature.

There is no such thing as XDoclet 1.3

Aslak

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: 7. oktober 2002 03:27
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [Xdoclet-user] Why isn't netbeans <ejbdoclet> task not
> recognized???
>
>
> I am using Netbeans 3.4 which has ant 1.4.1 bundled
> with it and when I look at my build.xml file, the IDE
> complains that there is "No known task or type named
> <ejbdoclet>.".  I can view the error message in the
> explorer window when I move my mouse over the
> <ejbdoclet> task that shows the red/white "x" next to
> it indicating an error.  The webdoclet task seems to
> be fine in the IDE.  Also, when I run ant from the
> command prompt with the same build.xml file I do not
> receive any complaints about <ejbdoclet> not being
> recognized.  Does anyone have any insight as to why
> this might occur?  I have included relevant snippets
> (xdoclet.path, base.path, ejbdoclet, and webdoclet) of
> my build.xml file for analysis below along with the
> error message given by Netbeans when I try to run
> build.xml.  I apologize for the length.
>
> Thanks in advance.
>
> Here is part of the error message when run from the
> IDE:  (and yes, I have the servlet jar mounted in the
> IDE)
>
> Constructing Javadoc information...
> javadoc: warning - Cannot find class ServletException
> javadoc: warning - Cannot find class
> HttpServletRequest
> javadoc: warning - Cannot find class
> HttpServletResponse
> javadoc: In doclet class
> xdoclet.DocletTask$DocletMain,  method start has
> thrown an exception
> java.lang.reflect.InvocationTargetException
> java.lang.NoClassDefFoundError:
> org/apache/tools/ant/types/EnumeratedAttribute
>         at java.lang.Class.getField0(Native Method)
>         at
> java.lang.Class.getDeclaredField(Class.java:1113)
>         at
> java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:300)
>         at
> java.security.AccessController.doPrivileged(Native
> Method)
>         at
> java.io.ObjectStreamClass.init(ObjectStreamClass.java:293)
>         at
> java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:112)
>         at
> java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:59)
>         at
> java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:88)
>         at
> java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:59)
>         at
> java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:88)
>         at
> java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:566)
>         at
> java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936)
>         at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
>         at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>         at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
>         at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>         at
> java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
>         at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
>         at
> java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2263)
>         at
> java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
>         at
> java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1412)
>         at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
>         at
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
>         at
> xdoclet.DocletTask$DocletMain.loadContext(DocletTask.java:603)
>         at
> xdoclet.DocletTask$DocletMain.start(DocletTask.java:529)
>         at java.lang.reflect.Method.invoke(Native
> Method)
> 1 error
> 3 warnings
>         at
> com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
>         at
> com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
>         at
> com.sun.tools.javadoc.Main.main(Main.java:233)
> build.xml [391] Javadoc returned 1
> BUILD FAILED
> Total time: 16 seconds
>
> =====================================================
> Here is part of the build.xml:
> =====================================================
>
>   <path id="xdoclet.path">
> <!-- AS Maybe necessary for Ant 1.5 and XDoclet 1.3
>      <pathelement
> location="${ant.home}/lib/xmlParserAPIs.jar" />
>      <pathelement
> location="${ant.home}/lib/xercesImpl.jar" />
>      <pathelement location="${ant.home}/lib/bcel.jar"
> />
>      <pathelement
> location="${xdoclet.home}/lib/xjavadoc.jar" />
> -->
>      <pathelement
> location="${xdoclet.home}/lib/xdoclet.jar" />
>      <pathelement
> location="${xdoclet.home}/samples/lib/log4j.jar" />
>      <pathelement location="${ant.home}/lib/ant.jar"
> />
>   </path>
>
>   <path id="base.path">
>      <fileset dir="${classes.common.dir}">
>         <include name="**/*.class" />
>      </fileset>
>      <fileset dir="${lib.ejb.dir}">
>         <include name="**/*.jar" />
>      </fileset>
>      <path refid="xdoclet.path"/>
>      <pathelement
> location="${jboss.client}/jboss-j2ee.jar" />
>      <pathelement
> location="${jboss.client}/jnp-client.jar" />
>      <pathelement
> location="${jboss.client}/jbossmq-client.jar" />
>      <pathelement
> location="${jboss.client}/jbosssx-client.jar" />
>      <pathelement
> location="${jboss.client}/concurrent.jar" />
>      <pathelement location="${jboss.client}/jaas.jar"
> />
>      <pathelement
> location="${jboss.lib}/jboss-jmx.jar" />
>      <pathelement
> location="${jboss.home}/server/${jboss.configuration}/lib/jbosssx.jar"
> />
>      <pathelement
> location="${jboss.home}/server/${jboss.configuration}/lib/mail.jar"
> />
>      <pathelement location="${build.classes.dir}" />
>      <fileset dir="${jwsdp.lib}">
>         <include name="**/jaxm-api.jar"/>
>         <include name="**/jaxm-runtime.jar"/>
>         <include name="**/jaxp-api.jar"/>
>         <include name="**/jaxr-api.jar"/>
>         <include name="**/jaxr-ri.jar"/>
>         <include name="**/jaxrpc-api.jar"/>
>         <include name="**/jaxrpc-ri.jar"/>
>      </fileset>
>   </path>
>
>   <target name="ejbdoclet-generate" depends="init">
>      <taskdef
>         name="ejbdoclet"
>         classname="xdoclet.ejb.EjbDocletTask"
>      >
>         <classpath refid="xdoclet.path"/>
>      </taskdef>
>
>      <ejbdoclet
>         sourcepath="${src.ejb.dir}"
>         destdir="${build.generate.ejb.dir}"
>         classpathref="base.path"
>         excludedtags="@author,@version"
>         ejbspec="${ejb.version}"
>         mergedir="${src.resources.dir}/xdoclet"
>         force="${xdoclet.force}"
>      >
>         <fileset dir="${src.ejb.dir}">
>            <include name="**/*EJB.java"/>
>            <include name="**/*Bean.java"/>
>         </fileset>
>
>         <packageSubstitution packages="ejb"
> substituteWith="interfaces"/>
>         <dataobject/>
>         <remoteinterface/>
>         <localinterface/>
>         <homeinterface/>
>         <localhomeinterface/>
>         <entitypk/>
>         <entitybmp/>
>         <entitycmp/>
>         <deploymentdescriptor
> destdir="${build.generate.ejb.meta-inf.dir}"/>
>         <!-- AS 4/29/02 Do not validate XML files
> because JBoss 3.0 message driven will
>              report an wrong error because it uses the
> wrong jboss.dtd -->
>         <jboss version="${jboss.version}"
>            xmlencoding="UTF-8"
>            typemapping="${type.mapping}"
>            datasource="${datasource.name}"
>
> destdir="${build.generate.ejb.meta-inf.dir}"
>            validateXml="false"
>         />
>      </ejbdoclet>
>   </target>  <!-- end of target ejbdoclet-generate -->
>
>   <target name="webdoclet-generate" depends="init">
>
>       <taskdef name="webdoclet"
>                classname="xdoclet.web.WebDocletTask"
>       >
>         <classpath refid="xdoclet.path"/>
>       </taskdef>
>
>       <webdoclet
>          sourcepath="${src.servlet.dir}"
>          destdir="${build.generate.servlet.dir}"
>          classpathref="base.path"
>          excludedtags="@version,@author"
>          mergedir="${src.resources.dir}/xdoclet"
>          force="${xdoclet.force}">
>
>          <fileset dir="${src.servlet.dir}">
>             <include name="**/*.java"/>
>             <!--
>             <include name="**/*Servlet.java" />
>             <include name="**/*Filter.java" />
>             <include name="**/*Tag.java" />
>             <include name="**/*Action.java" />
>             -->
>          </fileset>
>
>          <deploymentdescriptor servletspec="2.3"
>
> destdir="${build.generate.servlet.web-inf.dir}"
>                                sessiontimeout="30">
>               <welcomefile file="getstockquote.jsp"/>
>               <welcomefile file="index.html"/>
>             <!-- <taglib
> uri="http://java.sun.com/jstl/ea/core";
> location="/WEB-INF/c.tld" /> -->
>          </deploymentdescriptor>
>
>          <!--
>          <jsptaglib jspversion="1.2"
> destdir="${build.dir}/web/WEB-INF/tlds"
>             shortname="j2ee" validateXml="false"
>          />
>          -->
>
>          <jbosswebxml
> destdir="${build.generate.servlet.web-inf.dir}"
>
> securitydomain="java:/jaas/LDAPSecurityDomain"/>
>
>          <!--
>          <jrunwebxml
> destdir="${build.dir}/web/WEB-INF"
> mergedir="${src.dir}" />
>          -->
>
>          <!-- generate WebWork stuff, uncomment it if
> you want to run it.
>          -->
>          <!--
>          <webWorkConfigProperties />
>          <webWorkActionDocs javadocdir="api"
> mergedir="${src.dir}"/>
>          -->
>
>       </webdoclet>
>
>    </target>  <!-- end of target webdoclet -->
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to