读书人

org.apache.jasper.JasperException:

发布时间: 2013-09-11 18:34:24 作者: rapoo

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 6 in the jsp file: /bookcatalog.jsp
Generated servlet error:
BookDetails cannot be resolved to a type

An error occurred at line: 6 in the jsp file: /bookcatalog.jsp
Generated servlet error:
cart cannot be resolved

An error occurred at line: 22 in the jsp file: /bookcatalog.jsp
Generated servlet error:
cart cannot be resolved

An error occurred at line: 31 in the jsp file: /bookcatalog.jsp
Generated servlet error:
ListIterator cannot be resolved to a type

An error occurred at line: 31 in the jsp file: /bookcatalog.jsp
Generated servlet error:
BookDetails cannot be resolved to a type

An error occurred at line: 31 in the jsp file: /bookcatalog.jsp
Generated servlet error:
BookDetails cannot be resolved to a type


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


An error occurred at line: 6 in the jsp file: /bookcatalog.jsp
Generated servlet error:
BookDetails cannot be resolved to a type

An error occurred at line: 6 in the jsp file: /bookcatalog.jsp
Generated servlet error:
cart cannot be resolved

An error occurred at line: 22 in the jsp file: /bookcatalog.jsp
Generated servlet error:
cart cannot be resolved

An error occurred at line: 31 in the jsp file: /bookcatalog.jsp
Generated servlet error:
ListIterator cannot be resolved to a type

An error occurred at line: 31 in the jsp file: /bookcatalog.jsp
Generated servlet error:
BookDetails cannot be resolved to a type

An error occurred at line: 31 in the jsp file: /bookcatalog.jsp
Generated servlet error:


BookDetails cannot be resolved to a type


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



[解决办法]
JSP文件里有语法错误,编译不通过。
BookDetails这个你写的类要在bookcatalog.jsp里面import一下.
[解决办法]
jsp 页面上有6个错误.错误在于 第6行2个错, 第22行1个错, 第31行3个错.
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html

读书人网 >Java Web开发

热点推荐