david
On Tuesday, April 1, 2003, at 01:19 AM, Gwyn Evans wrote:
Hi David,
Where did you get your XDoclet kit from? You should have about 31 jars, all named xdoclet-<something>.jar.
Could you have downloaded a source kit? If so, try running Ant from the top level & doing a build, or simply try downloading the -bin- kit, as that should give you the libs, the docs & the samples.
For comparison, my build.xml has:
<target name="webdoclet"> <taskdef name="webdoclet" classname="xdoclet.modules.web.WebDocletTask" classpathref="xdoclet.class.path"/>
<!-- Parse the Log4J Config servlet files -->
<webdoclet destdir="${generated.xml.dir}">
<fileset dir="${core}/src/java">
<include name="com/xyz/web/log4j/*.java"/>
</fileset>
<deploymentdescriptor servletspec="2.3" destdir="${generated.xml.dir}/log4j"/>
</webdoclet>
</target>
Where the .java file has:-
/**
* Log4J initialisation Servlet.
*
* @web:servlet name="Log4jConfig" display-name="Log4jConfig" load-on-startup="1"
* @web:servlet-init-param name="Log4jConfigFile" value="/WEB-INF/log4j.xml"
* @web:servlet-mapping url-pattern="/*"
*/
Which generates the following...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app> <distributable/>
<!-- To use non XDoclet filters, create a filters.xml file that contains the additional filters (eg Sitemesh) and place it in your projects merge dir. Don't include filter-mappings in this file, include them in a file called filter-mappings.xml and put that in the same directory. -->
<!-- To use non XDoclet servlets, create a servlets.xml file that contains the additional servlets (eg Struts) and place it in your projects merge dir. Don't include servlet-mappings in this file, include them in a file called servlet-mappings.xml and put that in the same directory. -->
<servlet> <servlet-name>Log4jConfig</servlet-name> <display-name>Log4jConfig</display-name> <servlet-class>com.xyz.web.log4j.Log4jConfig</servlet-class>
<init-param> <param-name>Log4jConfigFile</param-name> <param-value>/WEB-INF/log4j.xml</param-value> </init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping> <servlet-name>Log4jConfig</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
<session-config> <session-timeout>0</session-timeout> </session-config>
<!--
To specify mime mappings, create a file named mime-mappings.xml, put it in your project's mergedir.
Organize mime-mappings.xml following this DTD slice:
<!ELEMENT mime-mapping (extension, mime-type)> -->
<!--
To specify error pages, create a file named error-pages.xml, put it in your project's mergedir.
Organize error-pages.xml following this DTD slice:
<!ELEMENT error-page ((error-code | exception-type), location)> -->
<!-- To add taglibs by xml, create a file called taglibs.xml and place it in your merge dir. -->
<!--
To set up security settings for your web app, create a file named web-security.xml, put it in your project's mergedir.
Organize web-security.xml following this DTD slice:
<!ELEMENT security-constraint (display-name?, web-resource-collection+, auth-constraint?, user-data-constraint?)>
<!ELEMENT web-resource-collection (web-resource-name, description?, url-pattern*, http-method*)>
<!ELEMENT web-resource-name (#PCDATA)>
<!ELEMENT url-pattern (#PCDATA)>
<!ELEMENT http-method (#PCDATA)>
<!ELEMENT user-data-constraint (description?, transport-guarantee)>
<!ELEMENT transport-guarantee (#PCDATA)>
<!ELEMENT login-config (auth-method?, realm-name?, form-login-config?)>
<!ELEMENT auth-method (#PCDATA)>
<!ELEMENT realm-name (#PCDATA)>
<!ELEMENT form-login-config (form-login-page, form-error-page)>
<!ELEMENT form-login-page (#PCDATA)>
<!ELEMENT form-error-page (#PCDATA)>
-->
</web-app>
Hope this helps a bit, at least! -- Best regards, Gwyn mailto:[EMAIL PROTECTED]
------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
