黑马程序员技术交流社区

标题: 基于xml文件校验错误、、、跪求解决啊 [打印本页]

作者: 陈斌    时间: 2012-3-27 01:25
标题: 基于xml文件校验错误、、、跪求解决啊
Caught exception while loading file com/struts2/form/Login-validation.xml
Element type "validators" must be declared. - file:///C:/Users/Administrator/AppData/Local/Genuitec/Common/plugins/com.genuitec.eclipse.easie.tomcat.myeclipse_8.6.0.me201007231647/tomcat/bin/com/struts2/form/Login-validation.xml:4:14
        at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)
        at com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFileParser.java:67)
        at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValidatorManager.java:361)
        at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:252)
        at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:340)
        at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69)
        at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:138)
        at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113)
        at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100)
        at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142)
        at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148)
        at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
        at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
       

---------------------------------------------------------------------------------------------------------------------
是不是少了什么架包??、怎么一直不能校验
作者: yangshang1    时间: 2012-3-27 07:24
是不是少dom4j
作者: 陈斌    时间: 2012-3-28 00:35
yangshang1 发表于 2012-3-27 07:24
是不是少dom4j

不是啊、、、求解决




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2