Make sure that when you define your task webdoclet all the xdoclet jars needed for it
are specified in classpathref parameter. This is what I usually do
<taskdef name="webdoclet"
classname="xdoclet.modules.web.WebDocletTask"
classpathref="xdoclet.class.path" />
my xdoclet.class.path is defined elsewhere as follows:
<path id="xdoclet.class.path">
<fileset dir="${tools.dir}/xdoclet/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${thirdparty.dir}/sun/j2ee/lib">
<include name="*.jar"/>
</fileset>
</path>
${thirdparty.dir}/sun/j2ee/lib contains servlet.xml
HTH,
Alex.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Chris B.
> Sent: Saturday, June 26, 2004 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] Help with xdoclet
>
>
> Hi,
>
> I'm trying to get going with xdoclet, and the best tutorial I seem to be
> able to find is the IBM (below).
>
> But no matter what I do, I keep getting the error...
> [webdoclet] Make sure the jar file containing the javax.servlet.Servlet
> class is
> on the classpath specified in the <taskdef> that defined webdoclet.
> These class
> es are needed in order to generate correct output.
>
> But I've got the build properties set up fine. In fact I've spent a lot
> of time now reading ant doco and I've tried specifying the classpath for
> the taskdef in about ten different ways, double and triple checking that
> javax.servlet.Servlet is indeed in the classpath in each case. But no
> matter what I do, same result.
>
> Here is a fragment from my build.xml file, which should pick up the
> servlet-api.jar in jboss....
>
> .....
> <target name="generateDD">
> <taskdef name="webdoclet"
> classname="xdoclet.modules.web.WebDocletTask">
> <classpath>
> <fileset
> dir="c:/downloads/jboss-3.2.4/server/default/deploy/jbossweb-tomca
t50.sar">
> <include name="*.jar"/>
> </fileset>
> </classpath>
> </taskdef>
> <webdoclet ......etc
>
> I'm using ant 1.6.1, xdoclet 1.2.1, jboss 3.2.4.
>
>
> https://www6.software.ibm.com/developerworks/education/ws-j2x/ws-j
2x-2-11.html
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user