在eclipse3.o+myeclipse5.o+tomcat4.o下创建的tomcat工程,把他转移到eclipse3.2+myeclipse6.o+tomcat5.5-下使用的时候访问出现下面错误: org.apache.jasper.JasperException: Unable to compile class for JSP:  
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 8 in the generated java file 
The type login_jsp must implement the inherited abstract method HttpJspBase.getIncludes() 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 36 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 37 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 38 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 39 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 40 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 41 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 42 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 43 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool 
JSP FileName:null 
Java FileName:/F:/workspace/admin/work//org/apache/jsp/WEB_002dINF/jsp/login\login_jsp.java 
An error occurred at line: 44 in the generated java file 
The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool Stacktrace: 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:98) 
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:302) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
jp.co.azia.base.action.PruActionServlet.process(PruActionServlet.java:34) 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
jp.co.azia.base.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:194) 
jp.co.azia.base.filter.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:85) 
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs. 请问是什么问题呀,怎么解决? 
先谢谢各位看帖的人,有知道的麻烦指点下。主要问题是JSP页面出现: 
The type login_jsp must implement the inherited abstract method HttpJspBase.getIncludes() 
-The method getTagHandlerPool(ServletConfig) is undefined for the type TagHandlerPool  
这两个错误是什么原因呀? 

解决方案 »

  1.   

    在你的新环境中建立一个空的工程和你旧的那个名一样的
    然后在把你旧工程的代码copy进去试试
      

  2.   

    在把你的jsp编译为java文件的时候出现的错误,问题是你没有实现继承的抽象方法getIncludes(),这个方法是HttpJspBase的,而所有的jsp页面都是由该类派生的
    而方法getTagHandlerPool()则提示没有定义,可能是新版本的已经不再使用的方法....
    错误原因等待中ing...