生凉拌西芹的做法大全:JSP报错 HTTP Status 500

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/30 06:15:21
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
examples.ShowSource.doEndTag(ShowSource.java:38)
org.apache.jsp.source_jsp._jspService(source_jsp.java:64)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
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.17 logs.

--------------------------------------------------------------------------------

Apache Tomcat/5.5.17
http://zhidao.baidu.com/question/5333148.html
……
5 .好了,重启动Tomcat,启动浏览器,输入http://localhost:8080/myapp/Test 如果看到输出This is a servlet test.就说明编写的servlet成功了。

注意:修改了web.xml以及新加了class,都要重启Tomcat

第四步:建立自己的Bean
……
救救我吧,我到这儿出错了
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

半月了,就是过不去,一步也没有差啊,天啊,放过我吧……!@

各位大哥大姐,是不是还是配置问题啊?
我用apache tomcat 5.5.17

java.lang.NullPointerException
这不是很明白吗?空指针错误,也就是没有要的结果,而你却用某方法得到此结果,当然就nullpoint拉,这是很常见的错误!

空指针异常

500是空指针错误,404是编译错误