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: Unable to compile class for JSP:
An error occurred at line: 1 in the generated java file
The type entity.Items cannot be resolved. It is indirectly referenced from required .class files
An error occurred at line: 7 in the generated java file
Only a type can be imported. entity.Items resolves to a package
An error occurred at line: 47 in the jsp file: /index.jsp
Items cannot be resolved to a type
44:
45: <%
46: ItemsDAO itemsDao = new ItemsDAO();
47: ArrayList<Items> list = itemsDao.getAllItems();
48: for(int i = 0; i<list.size();i++){
49: %>
50: <center>
An error occurred at line: 56 in the jsp file: /index.jsp
Items cannot be resolved to a type
53: <td>
54: <!-- 鍟嗗搧寰幆寮� -->
55: <%
56: Items item = list.get(i);
57: %>
58: <div>
59: <dl>
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
复制:
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:
寻求度娘 ;说的很清楚,祝你能解决问题