Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does JasperReports try to load org.springframework.core.io.Resource class?

Recently we integrated JasperReports to our enterprise application. Some of our users get java.lang.NoClassDefFoundError: org/springframework/core/io/Resource at client side which is a Swing application. The jnlp file contains jasperreports.jar and no import of this class occurs in our code. Why does JasperReports try to load this class ?

like image 501
mfidan Avatar asked Dec 19 '25 07:12

mfidan


2 Answers

I recreate the error on my pc and relaize that jasperreports-chart-themes.jar uses spring-core.jar and jasperreports-functions.jar uses jodatime api. so remove these jar if you really do not need otherwise add the depended jars.

like image 81
mfidan Avatar answered Dec 21 '25 23:12

mfidan


The spring-core.jar is an optional jasper report dependency

Why is it trying to load it?,

I would check the jrxml files and the jasperreports_extension.properties.

like image 30
Petter Friberg Avatar answered Dec 21 '25 22:12

Petter Friberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!