RE: Web.xml is not filled in with info.

"Giuseppe Sarno" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <B03A52266C74544CA7C8CDB507AC531404F991C1@zharhxm1.corp.nortel.com>
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]]On 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 e-mail is the property of Enron Corp. and/or its relevant affiliate
and may contain confidential and privileged material for the sole use of
the intended recipient (s). Any review, use, distribution or disclosure
by others is strictly prohibited. If you are not the intended recipient
(or authorized to receive for the recipient), please contact the sender
or reply to Enron Corp. at [email protected] and
delete all copies of the message. This e-mail (and any attachments
hereto) are not intended to be an offer (or an acceptance) and do not
create or evidence a binding and enforceable contract between Enron
Corp. (or any of its affiliates) and the intended recipient or any other
party, and may not be relied on by anyone as the basis of a contract by
estoppel or otherwise. Thank you. 

**********************************************************************
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.