Nabiha Ojeil Posted October 17 Share Posted October 17 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 More sharing options...
Nabiha Ojeil Posted October 17 Author Share Posted October 17 Dears , Also these classes are used in the new jasper library but i couldn't find the related jars If someone can help Link to comment Share on other sites More sharing options...
Lucian Chirita Posted October 18 Share Posted October 18 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 More sharing options...
Nabiha Ojeil Posted October 22 Author Share Posted October 22 Dear Lucian, Thank you for your reply , the classes that i listed above are called from the 'jasperreports-javaflow-7.0.1.jar' Below are the Jasper related jars Link to comment Share on other sites More sharing options...
Lucian Chirita Posted October 22 Share Posted October 22 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 More sharing options...
Nabiha Ojeil Posted October 24 Author Share Posted October 24 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 More sharing options...
Nabiha Ojeil Posted October 24 Author Share Posted October 24 Dear Lucian I found out that the error was related to the htmlcomponent.jar which is not anymore used in jasper 7 Thank you for your support Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now