otherkest22 Posted July 10 Share Posted July 10 Hello everyone, I need your help.I'm new to using Jaspersoft, and I'm trying to compile my report in an older version. I'm currently using Jaspersoft Studio Professional-8.1.0. I searched the documentation on how to compile for previous versions, followed the step-by-step instructions, but when I click on compile, it shows me the following error. exception, Reason: java.lang.NoClassDefFoundError: org/apache/http/HttpEntityjava.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:142) at net.sf.jasperreports.eclipse.builder.JasperReportsBuilder.compileJRXML(JasperReportsBuilder.java:220) at com.jaspersoft.studio.editor.action.CompileAction.actionCompile(CompileAction.java:159) at com.jaspersoft.studio.editor.action.CompileAction$1.run(CompileAction.java:101) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpEntity at com.jaspersoft.jasperreports.jrs.bursting.ServerConnectionScheduler.<init>(ServerConnectionScheduler.java:45) at com.jaspersoft.jasperreports.jrs.bursting.BurstingExtensions.createRegistry(BurstingExtensions.java:24) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:238) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:213) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:163) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:133) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:105) at net.sf.jasperreports.engine.component.ComponentsEnvironment.findComponentBundles(ComponentsEnvironment.java:89) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getCachedComponentBundles(ComponentsEnvironment.java:78) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getComponentBundles(ComponentsEnvironment.java:66) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.getSchemaLocations(JRReportSaxParserFactory.java:76) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.configureParser(BaseSaxParserFactory.java:131) at net.sf.jasperreports.engine.xml.BaseSaxParserFactory.createParser(BaseSaxParserFactory.java:94) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1342) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1318) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:207) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:172) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:156) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:82) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:118) ... 4 more Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpEntity at java.base/java.net.URLClassLoader.findClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at java.base/java.net.FactoryURLClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ... 28 more I have already downloaded the necessary libraries for the version I need from the internet and imported them into Jaspersoft Studio, but the error persists. It has even shown me other libraries at times. Any ideas on how I can compile it? Thank you in advance for your help. Link to comment Share on other sites More sharing options...
Mehak Rajkumar Posted July 11 Share Posted July 11 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
mbielkiewicz Posted July 11 Share Posted July 11 Can you let us know what steps you followed to try to compile to a previous version as well as which previous version you were trying to compile to? Link to comment Share on other sites More sharing options...
otherkest22 Posted July 11 Author Share Posted July 11 I am using JasperReport-4.5.0. To compile it in a previous version, what I did was add the libraries for Jaspersoft downloaded from the site for v4.5.0. Additionally, I added the JAR file of JasperReport-4.5.0 to the versions menu. To perform the build, I changed the .jrxml version to 4.5.0 in the menu, and in the compiler settings, I changed it to the 4.5.0 version that I added. Link to comment Share on other sites More sharing options...
mbielkiewicz Posted August 10 Share Posted August 10 Hmmm. Have you played with the Compatibility settings in Jaspersoft studio? Check https://community.jaspersoft.com/documentation/jaspersoft-studio-user-guide-820/v820/setting-compatibility-earlier-versions -- if so, does the report work in JSS or is the problem only in JRS? 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