Linux下基于JSP的报表集成到项目中后,显示不出来,查看tomcat的日志,有如下报错信息:
The return type is incompatible with JspSourceDependent.getDependants()
Stacktrace:] with root cause
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [33] in the generated java file: [/home/programs/apache-tomcat-PowerSupervise/work/Catalina/localhost/PowerSupervise/org/apache/jsp/reportPages/jspReport/fileRecordReport_jsp.java]
大致就是生成的JSP对应的java文件33行报错,解析错误,找到对应的java文件中相应代码,如下:
package org.apache.jsp.reportPages.jspReport;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class fileRecordReport_jsp extends org.apache.jasper.runt