Jump to content

java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/component/XmlDigesterConfigurer while calling JRXmlLoader.load(file) in Jasper 7.0.1


Recommended Posts

Dear Team,

After upgrading from the Jasper library 6.13 to the latest Jasper library 7.0.1 inside my java web application, i am getting the below error while trying to call the 'JasperDesign jasperDesign = JRXmlLoader.load(file);'

Can someone advise from where to get the related jar and if there is any dependent jars to add to upon this upgrade

Thank you in advance

java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/component/XmlDigesterConfigurer
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:190)
    at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:148)
    at net.sf.jasperreports.engine.util.ClassUtils.instantiateClass(ClassUtils.java:60)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:298)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:274)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:194)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:157)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:129)
    at net.sf.jasperreports.engine.DefaultJasperReportsContext.getExtensions(DefaultJasperReportsContext.java:273)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:161)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:120)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:107)

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Can you list all the  jars related to JasperReports that you have in your web application?  It seems that there's a jar containing a component that's no longer compatible with JasperReports 7.0.

Regarding the classes that you listed, where exactly are they used?

Regards,

Lucian

Link to comment
Share on other sites

What do you mean by this?

Quote

the classes that i listed above are called from the 'jasperreports-javaflow-7.0.1.jar'

The classes that you listed have been removed in JasperReports 7.0 and are not supposed to be part of jasperreports-javaflow-7.0.1.jar.

If there is any external code that uses those classes, then it's no compatible with JasperReports 7.0 and it needs to be adapted in order to work.

Link to comment
Share on other sites

Dear Lucian , 

What i meant by 'the classes that i listed above are called from the 'jasperreports-javaflow-7.0.1.jar' is that when i am calling the JRXmlLoader.load(jrxmlFile) from my java application  it is showing the below error , noting that the JRXmlLoader is part of jasperreports-javaflow-7.0.1.jar  (the same for jasperreports-javaflow-7.0.jar that i am trying now)

 


Caused by: java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/component/XmlDigesterConfigurer
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:191)
    at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:148)
    at net.sf.jasperreports.engine.util.ClassUtils.instantiateClass(ClassUtils.java:60)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:298)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:274)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:194)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:157)
    at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:129)
    at net.sf.jasperreports.engine.DefaultJasperReportsContext.getExtensions(DefaultJasperReportsContext.java:273)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:161)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:120)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:107)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...