JasperReports NoClassDefFoundError exception on net.sf.jasperreports.engine.util.JRStyledTextParser

后端 未结 11 1443
旧巷少年郎
旧巷少年郎 2020-12-01 06:26

When trying to export on WebLogic 11g, it throws NoClassDefFound exception. I checked the application WAR and jasperreports-3.7.4.jar is included in WEB-INF/lib folder. What

相关标签:
11条回答
  • 2020-12-01 07:16

    You get the same error if there is no enough space. I had the same error and it was because there was 0KB free space on server's hard drive.

    0 讨论(0)
  • 2020-12-01 07:17

    I experienced the same issue and we've solved it by installing the xorg fonts packages along with the ttf fonts.

    0 讨论(0)
  • 2020-12-01 07:17

    I had to install the xfce4 font package in my alpine linux. In fact, I'm using docker. So, I put the following command in the dockerfile:

    RUN apk add xfce4
    
    0 讨论(0)
  • 2020-12-01 07:17

    This was due to a missing font. I was able to resolve this by installing fontconfig and urw-fonts packages.

    yum install fontconfig
    yum install urw-fonts
    

    After that you can check supported fonts using command

    fc-list
    

    If the reports are still not generated you may need to reboot the server.

    0 讨论(0)
  • 2020-12-01 07:19

    for my case, jasperreports 6.8.0, worked the change of project dependency xml-apis from version

        <dependency>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis</artifactId>
                <version>2.0.2</version>
        </dependency>
    

    to

        <dependency>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis</artifactId>
                <version>1.4.01</version>
        </dependency>
    

    as proposed in jaspersoft community forum https://community.jaspersoft.com/questions/825173/could-not-initialize-class-netsfjasperreportsengineutiljrstyledtextparser

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