Struts 1 Tomcat在Windows 7中不起作用

时间:2012-04-09 06:49:45

标签: tomcat windows-7 struts1

我安装了Tomcat 6.0.35 Server。我的struts应用程序无法在Windows 7中运行。运行我的struts应用程序时出现错误:

exception 

org.apache.jasper.JasperException: java.lang.NullPointerException: Module 'null' not found.
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
    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.NullPointerException: Module 'null' not found.
    org.apache.struts.taglib.TagUtils.getModuleConfig(TagUtils.java:755)
    org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:364)
    org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:285)
    org.apache.struts.taglib.logic.RedirectTag.generateRedirectURL(RedirectTag.java:289)
    org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:268)
    org.apache.jsp.index_jsp._jspx_meth_logic_005fredirect_005f0(index_jsp.java:87)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
    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:388)
    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)

1 个答案:

答案 0 :(得分:0)

可能是因为多种原因。 查看struts module null not found

另外,请确保您没有混淆.jars