Hi folks,

I'm generating the validator.xml with XDoclet and I am having some problems with Jboss (I'm running 4.0).

Here follows my validation.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
<form-validation>
<!--
Define global validation config in validation-global.xml
-->
<formset>
<form name="feedBackForm">
<field property="comment"
depends="required">
<arg0 key="feedBackForm.comment"/>
</field>
<field property="email"
depends="email">
<arg0 key="feedBackForm.email"/>
</field>
<field property="fullName"
depends="required">
<arg0 key="feedBackForm.fullName"/>
</field>
</form>
</formset>
</form-validation>


The DTD version is 1.0, while I stated version 1.1. Here follow the Maven properties:

maven.xdoclet.webdoclet.strutsvalidationxml.0=true
maven.xdoclet.webdoclet.strutsvalidationxml.0.destDir=${basedir}/src/webapp/WEB-INF
maven.xdoclet.webdoclet.strutsvalidationxml.0.Version=1.1

I've tried also with 'version' starting in lowercase, as probably most of you will know with the strutsconfigxml the Version must start with capital. But the result didn't changed.

Now in Jboss, I obtain the following exception:

2004-11-17 23:19:44,676 ERROR [org.apache.struts.validator.ValidatorPlugIn] Skipping validation rules file from '/WEB-INF/validator.xml'. No stream could be opened.

I've searched also on the internet, and the ONLY post about it is linked below. Does anyone know the answer?


http://www.mail-archive.com/commons-user@jakarta.apache.org/msg02815.html


Thanks,

Marco




------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to