tomcat 5.0.28到tomcat5.5.26发生的JSP不能编译问题
各位,问个问题,我应用从tomcat 5.0 -> tomcat 5.5之后,一直报
“org.apache.jasper.JasperException: Unable to compile class for JSP”错误,提示不能编译JSP,将jdk tools.jar包拷贝到tomcat lib下,还是同样问题,郁闷得要命,在tomcat 5.0下一切正常,何故?
错误描述:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 37 in the generated java file
The return type is incompatible with JspSourceDependent.getDependants()
下面是JSP转servlet 第37行代码
private static java.util.List _jspx_dependants;
public Object getDependants() { //第37行
return _jspx_dependants;
}