首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

HTTP Status 500

2013-09-11 
求助:HTTP Status 500运行JSP+JAVABEAN在tomcat下出现这个问题谁帮我看看type Exception reportmessagedes

求助:HTTP Status 500
运行JSP+JAVABEAN在tomcat下出现这个问题
谁帮我看看
type Exception report

message 

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

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 25 in the jsp file: /bookstore/catalog.jsp
BookBean cannot be resolved to a type
22: <%
23: while(it.hasNext())
24: {
25: BookBean book=(BookBean)it.next();
26: String title=book.getTitle();
27: float price=book.getPrice();
28: int bookId=book.getId(); 


An error occurred at line: 25 in the jsp file: /bookstore/catalog.jsp
BookBean cannot be resolved to a type
22: <%
23: while(it.hasNext())
24: {
25: BookBean book=(BookBean)it.next();
26: String title=book.getTitle();
27: float price=book.getPrice();
28: int bookId=book.getId(); 


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


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


[解决办法]
你是不是忘了导入BookBean类了?
<%@ page import="....BookBean"%>
[解决办法]
BookBean cannot be resolved to a type 就表示找不到这个包

[解决办法]
25: BookBean book=(BookBean)it.next(); 

BookBean不能被解析
[解决办法]
前面都说了。。 可能是没导类
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html

热点排行