ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyle Korndoerfer <>
Subject errors using strutsvalidationxml subtask
Date Thu, 02 Sep 2004 19:48:49 GMT
XDoclet v1.2.1
Ant v1.6.1

I'm trying to use the strutsvalidationxml subtask of webdoclet to
qutomatically generate the validation.xml file for my forms (some are
auto-generated from my EJB's, other a written by hand), but when the
task executes, I get the following error...

[webdoclet] org.xml.sax.SAXParseException: Element "formset" requires
additional elements.

When I look into the generated validation.xml file, it is essentially

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD
Commons Validator Rules Configuration 1.0//EN"

    Define global validation config in validation-global.xml

So, it looks like the strutsvalidationxml tag is not processing, or for
some reason finding, my Form classes.

Here is a snippet from my build.xml just in case there is a problem

<webdoclet force="true"

    <fileset dir="${src.home}">
        <!-- standard source files -->
        <include name="**/*" />
        <include name="**/*" />
        <include name="**/" />	
    <fileset dir="${gen.src.home}">
        <!-- xdoclet-generated source files -->
        <include name="**/form/*" />
    <deploymentdescriptor ... />
    <jbosswebxml ... />

    <strutsconfigxml ... />
        validateXML="true" />

Anybody have any ideas? I have been unable to locate the source of the
problem for a while now.

Thanks in advance!

-={ Kyle }=-

Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage! 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message