欢迎来到天天文库
浏览记录
ID:59306940
大小:376.50 KB
页数:3页
时间:2020-09-05
《Struts错误集说课材料.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Struts错误集1.没有strus-config.xml文件文件系统会报错启动失败Missingconfigurationresourceforpath/WEB-INF/struts-config.xml2.strus-config.xml配置文件有语法错误,也会启动失败2.1没有配置DTDParsingerrorprocessingresourcepathjndi:/localhost/demo/WEB-INF/struts-config.xml2.2配置了DTD但其它什么都没写UnabletoinitializeStrutsActionServletduetoan
2、unexpectedexceptionorerrorthrown,somarkingtheservletasunavailable.Mostlikely,thisisduetoanincorrectormissinglibrarydependency.3.如果没有一个action元素的path属性与这个请求的路径相同,就会报Noactionconfigfoundforthespecifiedurl.4.如果name属性没有配置,会报错:如果没有写或者写错了会报空指针错误Formbeannotspecifiedonmappingforaction:"/loginActio
3、n"5.表单没有写action属性严重:Servlet.service()forservletjspthrewexceptionjava.lang.NullPointerExceptionatorg.apache.struts.taglib.TagUtils.getActionMappingName(TagUtils.java:583)atorg.apache.struts.taglib.html.FormTag.lookup(FormTag.java:856)atorg.apache.struts.taglib.html.FormTag.doStartTag(Form
4、Tag.java:488)atorg.apache.jsp.regist_jsp._jspx_meth_html_005fform_005f0(regist_jsp.java:103)atorg.apache.jsp.regist_jsp._jspService(regist_jsp.java:78)atorg.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.a
5、pache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)atorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)atorg.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:717)atorg.apach
6、e.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)atorg.apache.catalina.co
7、re.StandardContextValve.invoke(StandardContextValve.java:191)atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)atorg.apache.catalina.core.StandardEngineValve.invoke
此文档下载收益归作者所有