java 500问题如何解决
来源:百度知道 编辑:UC知道 时间:2024/07/04 01:54:06
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: mark_DAO/administrator_operationDAO
mark_servlet.Login.doPost(Login.java:77)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
在用网页浏览时出现这样的问题,是什么原因呢?请教高手,谢谢
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: mark_DAO/administrator_operationDAO
mark_servlet.Login.doPost(Login.java:77)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
在用网页浏览时出现这样的问题,是什么原因呢?请教高手,谢谢
java.lang.NoClassDefFoundError: mark_DAO/administrator_operationDAO
mark_servlet.Login.doPost(Login.java:77)
没有类定义发现异常mark_DAO/administrator_operationDAO
在Login。java 77行
500表示逻辑错误,不是路径错误,很庆幸你的代码里逻辑错误能提示出来,这样你可以根据他说的错误去找位置,以后代码很可能不报任何错误,但功能就是实现不了,这一般是比较有经验的程序员的现象,这种逻辑错误更可怕,好好学
要学会看提示,已经给出准确位置了Login.java:77
没有找到要引用的那个类。或者名字写错了。或者那个类根本就不存在。