From: "Roberto" <[EMAIL PROTECTED]> > > Then, I modified the validator-rules.xml in the follow manner: > <!DOCTYPE form-validation PUBLIC > "-//Apache Software Foundation//DTD Commons Validator Rules > Configuration 1.1.3//EN" > "/WEB-INF/validator_1_2_0.dtd"> > > after that I have copied the file validator_1_2_0.dtd in the directory > WEB-INF. > Unfortunately jboss reply with exception: > java.io.FileNotFoundException: \WEB-INF\validator_1_2_0.dtd
I don't know enough about this to help you fix it, but I can see two things wrong with your modifications-- you still have 1.1.3 before //EN when it should be 1.2.0, and you have PUBLIC yet the file is local. However, you don't have to put the DTD in WEB-INF. If you use the correct DOCTYPE, the DTD will be located inside the commons-validator.jar file. Look in the Validator .jar file for the DTD, (or retrieve it from http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd ) Then copy the *exact* DOCTYPE that it suggests into your validator-rules.xml file. For reference, it's: <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.2.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd"> I don't use JBoss, but I don't think this works any differently there than in standalone Tomcat. HTH, -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]