Validation Missing DTD --> NoClassDefFoundError
-----------------------------------------------

                 Key: WW-2530
                 URL: https://issues.apache.org/struts/browse/WW-2530
             Project: Struts 2
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 2.0.11
            Reporter: Dan Peder Eriksen


If:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
        "-//OpenSymphony Group//XWork Validator Config 1.0//EN"
        "http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd";>

is missing from validators.xml the following error appears:
java.lang.NoClassDefFoundError: Could not initialize class 
com.opensymphony.xwork2.validator.ValidatorFactory


http://struts.apache.org/2.x/docs/validation.html does not include the DTD for 
validation.xml. Hence it is easy for those who are starting out with struts 2 
to omit the DTD, as I did.

What I would like to see is a better error message. I first thought that it was 
a classloading problem when it really is a XML problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to