The return type is incompatible with JspSourceDependent.getDependants():JasperException问题分析与解决方法

在Linux环境下,将基于JSP的报表集成到项目后,遇到显示问题,日志显示'The return type is incompatible with JspSourceDependent.getDependants()'错误。通过检查JSP生成的java文件,发现是JspSourceDependent类冲突导致。经过排查,发现在jetty-server-8.1.8.jar中存在该类,删除后恢复正常。此外,类似问题可能由jsper-runtime.jar冲突引起,或需删除tomcat工作目录后重启解决。
摘要由CSDN通过智能技术生成

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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值