After implementing jasperreport 6.0.0
on kubernetes
I am getting below error
Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
I have tried multiple solution but still the error is NOT getting resolved.
Attempt 1: setting -Djava.awt.headless=true
I have implemented this property in YAML file as metioned on how to add CATALINA_OPTS=-Djava.awt.headless=true this property in Kubernetes configuration but it did not work.
I tried setting in system property as well System.setProperty("java.awt.headless", "true")
but his also did not worked.
Attempt 2: Including missing dependency for xml-apis
. It also did not work.
Attempt based on this thread.
Can someone please suggest any solution? The report is working absolutely fine in local environment but getting failed on server. The application is deployed on Kubernetes container