| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1271 人关注过本帖
标题:MyEclipse 7.5 的 Unable to compile class for JSP
取消只看楼主 加入收藏
czg123698741
Rank: 2
等 级:论坛游民
帖 子:348
专家分:84
注 册:2009-3-4
结帖率:78.99%
收藏
已结贴  问题点数:20 回复次数:0 
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)
搜索更多相关主题的帖子: MyEclipse Unable compile JSP class 
2010-09-16 00:34
快速回复:MyEclipse 7.5 的 Unable to compile class for JSP
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.036452 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved