Hi all,

[first, apologies if this is a known issue or something, I've searched 
the  bugs and the mailing lists, but of course stuff is easy to miss]

After upgrading to 1.2 beta 1, I started getting duplicate items in my 
generated web.xml. In particular, this happens for the welcome-file 
elements and the taglib elements.

   <webdoclet destdir="${build.dir}" force="true">
     <fileset dir="${src.java}">
       <include name="**/*.java" />
     </fileset>
     <deploymentdescriptor destdir="${build.dir}/conf"
         mergedir="${build.dir}/conf"
         servletspec="2.3"
         displayname="..."
         description="..."
         sessiontimeout="${web.session-timeout}"
         validateXml="false">
       <welcomefile file="index.jsp"/>
       <taglib uri="/WEB-INF/example.tld"
           location="/WEB-INF/example.tld"/>
     </deploymentdescriptor>
     <jsptaglib destdir="${build.dir}/conf"
         mergedir="${build.dir}/conf"
         filename="example.tld"
         ...
     />
     ...
   </webdoclet>

I do not have any merge files for either welcome-files or taglibs... 
However the generated web.xml contains the following:

    <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
       <welcome-file></welcome-file>
    </welcome-file-list>

and further down:

    <taglib>
       <taglib-uri>/WEB-INF/example.tld</taglib-uri>
       <taglib-location>/WEB-INF/example.tld</taglib-location>
    </taglib>
    <taglib>
       <taglib-uri></taglib-uri>
       <taglib-location></taglib-location>
    </taglib>

Especially the bogus taglib element doesn't amuse Tomcat ;-). I've 
looked at the template, but didn't see an obvious problem. Regardless of 
whether I specify no taglib, 1 taglib or many taglibs, there's always an 
empty taglib at the end of the list (same with the welcome-file-list).

Does anyone have an idea?

-- 
Christopher Lenz
/=/ cmlenz at gmx.de



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