Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

前端 未结 19 2131
清酒与你
清酒与你 2020-12-10 01:32

I\'m trying to display my reports on the browser , but I keep getting this error:

\"enter

相关标签:
19条回答
  • 2020-12-10 02:14

    I know I'm late but couldn't resist answering this one to help out a lot of guys in trouble. After a lot of trial and error, figured out that xml-apis jar is excluded in catalina.properties of tomcat. Remove it from there and it should work. Didn't notice any side effects till now, works great.

    Also, make sure the fonts are installed and check gradle/pom for merge strategy if any exclusions are made on xml-apis jar.

    BTW, this problem started coming for us after upgrading to jdk11 and moving from tomcat 8 to 9.

    0 讨论(0)
提交回复
热议问题