Does your servlet class extend a class that's not in the XDoclet classpath?
Are the XDoclet tags in the class JavaDoc *right* before the class?
Does adding the 'verbose="1"' attribute to the webdoclet task give any info?
Maybe just trim it back to the basics?
e.g. the following should provide a populated web.xml
JavaDoc
/**
* Servlet.
* @web:servlet name="MyTestServlet"
* @web:servlet-mapping url-pattern="/mytest"
*/
public class ....
and
<target name="webdoclet-myservlet">
<taskdef
name="webdoclet"
classname="xdoclet.modules.web.WebDocletTask"
classpathref="xdoclet.class.path"/>
<webdoclet destdir="${build.dir}/xml">
<fileset dir="src/java">
<include name="some/package/path/*.java"/>
</fileset>
<deploymentdescriptor servletspec="2.3" destdir="${build.dir}/xml"/>
</webdoclet>
</target>
/Gwyn
On 13/04/06, Giuseppe Sarno <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I tried all the possible combinations with no luck,
>
> has anyone have any idea ?
>
> Thanks.
>
> ________________________________
> From: Sarno, Giuseppe [MOP:GM15:EXCH]
> Sent: 08 April 2006 00:15
>
> To: '[email protected]'
> Subject: RE: [Xdoclet-user] Web.xml is not filled in with info.
>
>
>
> sorry the xdoclet version is 1.2.3 (just double checked)
>
> ________________________________
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Nail, Evan Burke
> Sent: 07 April 2006 16:35
> To: [email protected]
> Subject: RE: [Xdoclet-user] Web.xml is not filled in with info.
>
>
>
> Well I might be missing the same thing you are cause it looks correct at
> first glance.
>
> Two things you might try.
>
> I use a little different fileset sometimes so maybe trying a different
> approach would make sure you are picking up the files. But from your note
> you probably tried a few options already.
>
> <fileset dir="${src.dir}" includes="**/*Servlet.java" />
>
>
> You can also try force="true" attribute on webdoclet or make sure you make
> a change to the file, again just to make sure your picking up the file.
>
> I'll compare it in more detail to one of mine and see if anything else
> stands out that might be the cause.
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf
> Of Giuseppe Sarno
> Sent: Friday, April 07, 2006 10:12 AM
> To: [email protected]
> Subject: [Xdoclet-user] Web.xml is not filled in with info.
>
>
>
> Hi I'm having a problem running Xdoclet from ant:
>
> Ant ver = 1.6.*
> Xdoclet = 1.2.2
>
> This is my target
>
>
> <target name="webdoclet">
>
> <taskdef name="webdoclet"
> classname="xdoclet.modules.web.WebDocletTask"
> classpathref="xdoclet.class.path"/>
>
> <webdoclet excludedTags="@version,@author,@todo"
> destDir="${build.war.root}/WEB-INF" verbose="true" addedTags="@xdocle
>
> t-generated at ${TODAY},@copyright The XDoclet Team,@author XDoclet,@version
> ${version}" >
> <fileset dir="${servlet.dir}"
> includes="WebAuthenticator.java" >
> </fileset>
> <deploymentdescriptor Servletspec="2.4"
> destDir="${build.war.root}/WEB-INF" >
> </deploymentdescriptor>
> <jsptaglib Jspversion="1.2" shortname="j2ee"
> destDir="${build.war.root}/WEB-INF" >
> </jsptaglib>
> <jbosswebxml Version="4.0"
> destDir="${build.war.root}/WEB-INF" >
> </jbosswebxml>
> </webdoclet>
>
> The resulting web.xml is filled in with default info (all commented out) and
> is not created with any info from my servlet.
>
> What am I missing ?
>
> Note:
>
> <fileset dir="${servlet.dir}" includes="WebAuthenticator.java" >
> </fileset>
>
> Seems ok.
>
> Tags:
> /**
> * Servlet Class
> * @jboss-web.context-root name="/security"
> * @web.servlet name="WebAuthenticator"
> * display-name="Name for WebAuthenticator"
> * description="Description for WebAuthenticator"
> * @web.servlet-mapping url-pattern="/Authenticator"
> * @web.servlet-init-param name="A parameter"
> * value="A value"
> */
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user