You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Matthieu Chase Heimer (JIRA)" <ji...@apache.org> on 2008/05/25 05:02:06 UTC
[jira] Commented: (WW-2530) Validation Missing DTD -->
NoClassDefFoundError
[ https://issues.apache.org/struts/browse/WW-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43945#action_43945 ]
Matthieu Chase Heimer commented on WW-2530:
-------------------------------------------
The documentation as been update. Please close this issue.
> 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.