[#13076] - java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.fill.JRExtendedIncrementerFactory

Category:
Bug report
Priority:
Normal
Status:
Closed
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

When you implement a custom JRExtendedIncrementerFactory it works running outside of the report server. In other words I can run the report in the Studio and in my own environment, but as soon as I try to run the report in the report server it generates a NoClassDefFoundError:
Caused by: java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JRExtendedIncrementerFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1346)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1182)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)

...more

v7.5
CrossTab
corne_3's picture
Joined: Aug 12 2020 - 7:05am
Last seen: 1 month 4 weeks ago

1 Comment:

#1
  • Status:New» Closed

I placed my custom library under /opt/jasperreports-server-cp-7.8.0/apache-tomcat/lib and not /opt/jasperreports-server-cp-7.8.0/apache-tomcat/webapps/jasperserver/WEB-INF/lib. After I place my library under /opt/jasperreports-server-cp-7.8.0/apache-tomcat/webapps/jasperserver/WEB-INF/lib, it worked.

Feedback