Struts开发异常-1

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.struts.config.ModuleConfig.findActionConfigId(Ljava/lang/String;)Lorg/apache/struts/config/ActionConfig;
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:500)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 

root cause

javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.struts.config.ModuleConfig.findActionConfigId(Ljava/lang/String;)Lorg/apache/struts/config/ActionConfig;
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)
	org.apache.jsp.jsp.login_jsp._jspService(login_jsp.java:83)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 

root cause

java.lang.NoSuchMethodError: org.apache.struts.config.ModuleConfig.findActionConfigId(Ljava/lang/String;)Lorg/apache/struts/config/ActionConfig;
	org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:845)
	org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488)
	org.apache.jsp.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:100)
	org.apache.jsp.jsp.login_jsp._jspService(login_jsp.java:73)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.


Apache Tomcat/6.0.32

------------------------------------------------------------------------------------------------------------------------

以上是异常现象。出现的原因是:

我用的版本是Struts1.2 ,为了测试tld文件的配置,我在struts.jar的基础上,又导入了

struts-taglib-1.3.10.jar 这里面也有 *.tld 文件,应用是冲突了,所以发生了这个错误~

 

我在网上搜了一下,应该还有其他原因如下,看来以后手动配置时要注意了,呵呵,配置jar报等了,不能多,也不能少

 

web.xml文件配置的问题,没有找到servlet类,看看servlet类名对不对,如果使用的第三方的servlet,看一下包是否添加全了。
struts包加进去了吗?

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