Hi Matthieu, Thanks for the tip: it worked a charm. Only one slight hiccup is that when I run the webdoclet task, it gives me the following line:
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 6.0//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd"> Which causes an error when I have XML validation turned on. I've set the version to "8.1", but for some reason, it's still using the 6.0 DTD. How do I force it to use the 8.1 one? Ben ----- Original Message Follows ----- > Hi Ben, > > why don't you use a modified template ? with your own > <container-descriptor> nodes added ? > > ex : weblogic_web_xml.xdt --------------------- > <?xml version="1.0" > encoding="<XDtConfig:configParameterValue > paramName="Xmlencoding"/>"?> > > <!DOCTYPE weblogic-web-app PUBLIC "<XDtXml:publicId/>" > "<XDtXml:systemId/>"> > > <weblogic-web-app> > <XDtConfig:ifConfigParamNotEquals > paramName="Description" value=""> > <description><![CDATA[<XDtConfig:configParameterValue > paramName="Description"/>]]></description> > </XDtConfig:ifConfigParamNotEquals> > <XDtConfig:ifConfigParamNotEquals paramName="Version" > value=""> > <weblogic-version><XDtConfig:configParameterValue > paramName="Version"/></weblogic-version> > </XDtConfig:ifConfigParamNotEquals> > <!-- XDoclet TODO: implement security roles (see DTD) > --> > <reference-descriptor> > <XDtClass:forAllClasses> > <XDtClass:forAllClassTags > tagName="weblogic:resource-description"> > <resource-description> > <res-ref-name><XDtClass:classTagValue > tagName="weblogic:resource-description" > paramName="res-ref-name"/></res-ref-name> > <jndi-name><XDtClass:classTagValue > tagName="weblogic:resource-description" > paramName="jndi-name"/></jndi-name> > </resource-description> > </XDtClass:forAllClassTags> > </XDtClass:forAllClasses> > <XDtClass:forAllClasses> > <XDtClass:forAllClassTags > tagName="weblogic:ejb-reference-description"> > <ejb-reference-description> > <ejb-ref-name><XDtClass:classTagValue > tagName="weblogic:ejb-reference-description" > paramName="ejb-ref-name"/></ejb-ref-name> > <jndi-name><XDtClass:classTagValue > tagName="weblogic:ejb-reference-description" > paramName="jndi-name"/></jndi-name> > </ejb-reference-description> > </XDtClass:forAllClassTags> > </XDtClass:forAllClasses> > </reference-descriptor> > <!-- XDoclet TODO: implement the rest of the stuff (see > DTD) > NB use merge points for most of them? --> > <XDtConfig:ifHasConfigParam paramName="ContextRoot"> > <context-root><XDtConfig:configParameterValue > paramName="ContextRoot"/></context-root> > </XDtConfig:ifHasConfigParam> > > <!-- ======= Your Custom Merge Point ======= --> > <container-descriptor> > <check-auth-on-forward/> > <WhatEverYouWant/> > </container-descriptor> > > </weblogic-web-app> ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ xdoclet-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
