A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 陈斌 中级黑马   /  2012-3-27 01:25  /  2537 人查看  /  2 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

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)
       

---------------------------------------------------------------------------------------------------------------------
是不是少了什么架包??、怎么一直不能校验

2 个回复

倒序浏览
是不是少dom4j
回复 使用道具 举报
yangshang1 发表于 2012-3-27 07:24
是不是少dom4j

不是啊、、、求解决
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马