MyEclipse 7.5 的 Unable to compile class for JSP
大家好,我原本使用eclipse编译器的,能正常运行项目,排除了环境变量的问题。但是现在使用了MyEclipse 7.5时候,直接打印页面没有问题,一旦调用其他包里面的类的话就会提示:HTTP Status 500 - Unable to compile class for JSP具体错误如下:
2010-9-16 0:27:40 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Tomcat 5.5\bin
2010-9-16 0:27:40 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2010-9-16 0:27:40 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 547 ms
2010-9-16 0:27:40 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-9-16 0:27:40 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.28
2010-9-16 0:27:40 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2010-9-16 0:27:41 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2010-9-16 0:27:41 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2010-9-16 0:27:41 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2010-9-16 0:27:41 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2010-9-16 0:27:41 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2010-9-16 0:27:42 org.apache. init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-9-16 0:27:42 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/46 config=null
2010-9-16 0:27:42 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2010-9-16 0:27:42 org.apache.catalina.startup.Catalina start
信息: Server startup in 1594 ms
2010-9-16 0:28:25 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 25 in the jsp file: /ddd/WebRoot/index.jsp
BooksBo cannot be resolved to a type
22:
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
An error occurred at line: 25 in the jsp file: /ddd/WebRoot/index.jsp
BooksBo cannot be resolved to a type
22:
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
An error occurred at line: 26 in the jsp file: /ddd/WebRoot/index.jsp
Book cannot be resolved to a type
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
29: {
Stacktrace:
at org.apache.(DefaultErrorHandler.java:93)
at org.apache.(ErrorDispatcher.java:330)
at org.apache.(JDTCompiler.java:451)
at org.apache.(Compiler.java:319)
at org.apache.(Compiler.java:298)
at org.apache.(Compiler.java:286)
at org.apache.jasper.(JspCompilationContext.java:564)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.(PoolTcpEndpoint.java:528)
at org.apache.tomcat.(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
2010-9-16 0:28:29 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 25 in the jsp file: /ddd/WebRoot/index.jsp
BooksBo cannot be resolved to a type
22:
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
An error occurred at line: 25 in the jsp file: /ddd/WebRoot/index.jsp
BooksBo cannot be resolved to a type
22:
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
An error occurred at line: 26 in the jsp file: /ddd/WebRoot/index.jsp
Book cannot be resolved to a type
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
29: {
Stacktrace:
at org.apache.(DefaultErrorHandler.java:93)
at org.apache.(ErrorDispatcher.java:330)
at org.apache.(JDTCompiler.java:451)
at org.apache.(Compiler.java:319)
at org.apache.(Compiler.java:298)
at org.apache.(Compiler.java:286)
at org.apache.jasper.(JspCompilationContext.java:564)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.(PoolTcpEndpoint.java:528)
at org.apache.tomcat.(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
2010-9-16 0:28:31 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.apache.jsp.ddd.WebRoot.index_jsp
at (URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at (URLClassLoader.java:188)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.(PoolTcpEndpoint.java:528)
at org.apache.tomcat.(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
2010-9-16 0:28:33 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 25 in the jsp file: /ddd/WebRoot/index.jsp
BooksBo cannot be resolved to a type
22:
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
An error occurred at line: 25 in the jsp file: /ddd/WebRoot/index.jsp
BooksBo cannot be resolved to a type
22:
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
An error occurred at line: 26 in the jsp file: /ddd/WebRoot/index.jsp
Book cannot be resolved to a type
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
29: {
Stacktrace:
at org.apache.(DefaultErrorHandler.java:93)
at org.apache.(ErrorDispatcher.java:330)
at org.apache.(JDTCompiler.java:451)
at org.apache.(Compiler.java:319)
at org.apache.(Compiler.java:298)
at org.apache.(Compiler.java:286)
at org.apache.jasper.(JspCompilationContext.java:564)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.(PoolTcpEndpoint.java:528)
at org.apache.tomcat.(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
2010-9-16 0:28:49 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 25 in the jsp file: /ddd/WebRoot/index.jsp
BooksBo cannot be resolved to a type
22:
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
An error occurred at line: 25 in the jsp file: /ddd/WebRoot/index.jsp
BooksBo cannot be resolved to a type
22:
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
An error occurred at line: 26 in the jsp file: /ddd/WebRoot/index.jsp
Book cannot be resolved to a type
23: <body>
24: <%
25: BooksBo book=new BooksBo();
26: List<Book> book_buyNumber_list=book.get_books("buyNumber");
27:
28: for(int i=0;i<book_buyNumber_list.size();i++)
29: {
Stacktrace:
at org.apache.(DefaultErrorHandler.java:93)
at org.apache.(ErrorDispatcher.java:330)
at org.apache.(JDTCompiler.java:451)
at org.apache.(Compiler.java:319)
at org.apache.(Compiler.java:298)
at org.apache.(Compiler.java:286)
at org.apache.jasper.(JspCompilationContext.java:564)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.(PoolTcpEndpoint.java:528)
at org.apache.tomcat.(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)