0

我有一个简单的 struts 程序在以 tomcat 7 作为服务器的 Windows 环境中完美运行。但是我将应用程序部署在 linux 环境中,以 tomcat 7 作为服务器,应用程序没有运行。它显示404错误。请帮我解决问题。

我收到如下错误:输入异常报告

信息:

javax.servlet.ServletException: javax.servlet.jsp.JspException: 找不到 ActionMappings 或 ActionFormBeans 集合

描述:

服务器遇到一个内部错误,导致它无法完成此请求。

例外:

org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

root cause

javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:912)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:841)
    org.apache.jsp.login_jsp._jspService(login_jsp.java:112)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
    org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:747)
    org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
    org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:147)
    org.apache.jsp.login_jsp._jspService(login_jsp.java:102)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

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

1 回答 1

0

您在创建war文件时是否正确包含了jar。请检查项目的 WEB-INF/Lib 文件夹中是否有以下 jar

  1. antlr-2.7.6.jar
  2. commons-beanutils-1.7.0.jar
  3. commons-chain-1.2.jar
  4. commons-collections-3.1.jar
  5. commons-digester-2.0.jar
  6. commons-fileupload-1.2.2.jar
  7. commons-io-2.0.1.jar
  8. commons-lang-2.5.jar
  9. commons-logging-1.1.1.jar
  10. commons-logging-api-1.1.jar
  11. commons-validator-1.3.1.jar
  12. dom4j-1.6.1.jar
  13. hibernate-jpa-2.0-api-1.0.1.Final.jar
  14. hibernate3.jar
  15. javassist-3.12.0.GA.jar
  16. jstl-api-1.2.jar
  17. jstl-impl-1.2.jar
  18. jta-1.1.jar
  19. mysql-connector-java-5.1.17-bin.jar
  20. ognl-3.0.1.jar
  21. slf4j-api-1.6.1.jar
  22. slf4j-log4j12-1.6.2.jar
  23. spring-beans-2.5.6.jar
  24. spring-context-2.5.6.jar
  25. spring-core-2.5.6.jar
  26. spring-test-2.5.6.jar
  27. spring-web-2.5.6.jar
  28. struts2-core-2.2.3.1.jar
  29. xwork-core-2.2.3.1.jar
于 2014-02-28T15:25:49.680 回答