严重: Caught exception while loading file com/bh/action/RegistAction-validation.xml

严重: Caught exception while loading file com/bh/action/RegistAction-validation.xml
http://www.opensymphony.com/xwork/xwork-validator-1.0.3.dtd - [unknown location]
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:119)
at com.opensymphony.xwork2.validator.DefaultValidatorFileParser.parseActionValidatorConfigs(DefaultValidatorFileParser.java:82)
at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValidatorManager.java:394)
at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:279)
at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:371)
at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:102)
at com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:90)
at org.apache.struts2.components.Form.getValidators(Form.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458)
at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:71)
at freemarker.core.MethodCall._eval(MethodCall.java:62)
at freemarker.core.Expression.eval(Expression.java:78)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:58)
at freemarker.core.Environment.visitByHiddingParent(Environment.java:333)
at freemarker.core.IteratorBlockContext.runLoop(IteratorBlock.java:148)  
      at freemarker.core.Environment.visitIteratorBlock(Environment.java:559)  
      at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67)  
      at freemarker.core.Environment.visit(Environment.java:312)  
      at freemarker.core.MixedContent.accept(MixedContent.java:62)  
      at freemarker.core.Environment.visitByHiddingParent(Environment.java:333)  
      at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)  
      at freemarker.core.Environment.visit(Environment.java:312)  
      at freemarker.core.MixedContent.accept(MixedContent.java:62)  
      at freemarker.core.Environment.visit(Environment.java:312)  
      at freemarker.core.Environment.include(Environment.java:2074)  
      at freemarker.core.Include.accept(Include.java:165)  
      at freemarker.core.Environment.visit(Environment.java:312)  
      at freemarker.core.MixedContent.accept(MixedContent.java:62)  
      at freemarker.core.Environment.visit(Environment.java:312)  
      at freemarker.core.Environment.process(Environment.java:290)  
      at freemarker.template.Template.process(Template.java:312)  
      at org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:158)  
      at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:584)  
      at org.apache.struts2.components.UIBean.end(UIBean.java:538)  
      at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)  
      at org.apache.jsp.WEB_002dINF.content.regist_jsp._jspx_meth_s_005fform_005f0(regist_jsp.java:186)  
      at org.apache.jsp.WEB_002dINF.content.regist_jsp._jspService(regist_jsp.java:90)  
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)  
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)  
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)  
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)  
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)  
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)  
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)  
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)  
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)  
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)  
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)  
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)  
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)  
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)  
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)  
      at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)  
      at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)  
      at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:369)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:273)  
      at org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)  
      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)  
      at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)  
      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)  
      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)  
      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)  
      at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)  
      at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)  
      at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)  
      at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)  
      at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)  
      at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)  
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)  
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)  
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)  
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)  
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)  
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)  
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)  
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)  
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)  
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)  
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)  
      at org.apache.coyote.AbstractProtocol
AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint SocketProcessor.run(JIoEndpoint.java:314)atjava.util.concurrent.ThreadPoolExecutor.runWorker(UnknownSource)atjava.util.concurrent.ThreadPoolExecutor Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: http://www.opensymphony.com/xwork/xwork-validator-1.0.3.dtd
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl DTDDriver.dispatch(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl DTDDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl PrologDriver.next(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(UnknownSource)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(UnknownSource)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(UnknownSource)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(UnknownSource)atcom.sun.org.apache.xerces.internal.parsers.XMLParser.parse(UnknownSource)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(UnknownSource)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:117)
… 126 more

将 XXX-validation.xml 中的
<?xml version="1.0" encoding="utf-8"?>
<!-- 指定校验配置文件的DTD信息 -->
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.3//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.3.dtd">
<!-- 校验文件的根元素 -->

修改为

<?xml version="1.0" encoding="utf-8"?>
<!-- 指定校验配置文件的DTD信息 -->
 <!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.3//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
<!-- 校验文件的根元素 -->

你可能感兴趣的:(exception,struts)