Jump to content
We've recently updated our Privacy Statement, available here ×

chrono_b

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by chrono_b

  1. Hi all, I am trying to embed jasper report as an OSGi bundle in a web application. I plan to use the bundle to compile and run reports. Everything works when the report has its language set to Java, but when the language is set to groovy, I get compilation errors like below net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:calculator_report1_1268386587194_284063: 18: unable to resolve class JREvaluator @ line 18, column 1.calculator_report1_1268386587194_284063: 25: unable to resolve class JRFillParameter @ line 25, column 5.calculator_report1_1268386587194_284063: 26: unable to resolve class JRFillParameter @ line 26, column 5.calculator_report1_1268386587194_284063: 27: unable to resolve class JRFillParameter @ line 27, column 5. I suspect this is caused by the groovy compiler not having the jasper jar file on the classpath. I am not sure what the classpath is for groovy compiler in an OSGi container or how to set the classpath for the compiler. My code to compile report is quite simple and standard, it works if I run it like a normal Java app (no OSGi, with main method).Thanks Patrick Code:JasperDesign jasperDesign = JRXmlLoader.load(inputStream);JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
×
×
  • Create New...