Tomcat 5.0.28下JSP登陆首页一放入STRUTS标签就报错,虚心请教高手,在线等!
发布某应用ksxtWeb,登录页总是报错,我在JSP页面一加入有STRUTS标签的如下代码就报错,一去掉这两行代码就可以正常显示JSP页面!!!
代码: <html:form action= "/login ">
</html:form>
可是我确实Tomcat 5.0\common\lib下和发布目录ksxtWeb的\WEB-INF\lib下都加入了struts.jar,nested_tags,servlet.jar,tools.jar; 在ksxtWeb的\WEB-INF下加入了struts-bean.tld,struts-html.tld,struts-logic.tld,struts-nested.tld等文件啊,反复重起TOMCAT,清空WORK文件夹都始终有如下报错误信息!
这个WEB应用部署在TOMCAT4.1.30下可正常运行,可一换到Tomcat 5.0.28下登录首页就报错,很是郁闷。。。。请高人指点!谢谢!
报错信息如下:
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 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:785)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.login_jsp._jspService(login_jsp.java:157)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
------解决方案--------------------换成: <html:form action= "login.do ">
</html:form>
在看看 这个呢 在tomcat4好使是正常的 因为版本低 有的错误先查不是很完整
当然有时候这也不能算是错误 可是在tocat5后面的版本很多东西检查的是非常完整的
所以还是建议用5
另外你最好把这个jsp页面都帖出来 要么那有谁那么厉害就知道怎么回事
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html