首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Struts开发错误-1

2013-09-11 
Struts开发异常-1HTTP Status 500 - type Exception reportmessage description The server encountered a

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包加进去了吗?


我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html

热点排行