1

我有一个使用 Struts 的 Java EE 应用程序。它大部分工作正常,但突然我遇到了一个例外。

我在 WEB-INF/lib 中有 Struts jar 文件,之前应用程序运行正常。

例外:

javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)
org.apache.jsp.Fichier_jsp._jspService(Fichier_jsp.java:88)
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)
4

1 回答 1

0

You are probably missing this dependency:

<dependency>
   <groupId>org.apache.struts</groupId>
   <artifactId>struts-taglib</artifactId>
   <version>1.3.9</version>
</dependency>

If you are not using Maven, you will have to download it.

于 2013-04-23T20:05:07.773 回答