为什么报表生成器在升级到tomcat 8.0.43时引发异常

为什么报表生成器在升级到tomcat 8.0.43时引发异常,tomcat,jasper-reports,Tomcat,Jasper Reports,我们发现JasperReports在将tomcat从8.0.30升级到8.0.43时会引发以下错误 JasperCompileManager.compileReport(jrxmlFilePathname); ---------------------^^^^^^^^^^^^^ Errors were encountered when compiling report expressions class file: 1. java.lang.Double cannot be resolved

我们发现JasperReports在将tomcat从8.0.30升级到8.0.43时会引发以下错误

JasperCompileManager.compileReport(jrxmlFilePathname);
---------------------^^^^^^^^^^^^^

Errors were encountered when compiling report expressions class file:
1. java.lang.Double cannot be resolved to a type
            value = ((java.lang.Double)field_amount.getValue()); //$JR_EXPR_ID=15$
                      <-------------->

在将tomcat降级到8.0.30升级到JasperReports 6.3.1之后,这个错误就消失了,旧版本有一个与ECJ 4.6.0或更新版本的报告编译相关的错误

Tomcat8.0.43带有ECJ4.6.1,而Tomcat8.0.30带有ECJ4.4.2

或者,如果您不想升级JasperReports,请将其包含在您的webapp中的WEB-INF/lib下