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
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.
I experienced the same issue and we've solved it by installing the xorg fonts packages along with the ttf fonts.
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
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.
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