Quoting Ben <[EMAIL PROTECTED]>:
> Hi there,
>
> I'm trying to automate the creation of the Axis war
> deployment descriptor for WebLogic 8.1. According to the
> Axis page
> (http://ws.apache.org/axis/java/install.html#WebLogic8.1)
> there is a classpath issue with 8.1 that requires some
> entries to be added to the weblogic.xml file.
>
> I thought the sensible thing to do would be to use merge
> points. However, neither the Axis javadocs on the
> weblogicwebxml nor the xDoclet template file give any
> indication of how to include the container-descriptor
> element. Has anybody found a solution to this?
>
> Ben
>
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