• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problems with JasperReport in mine servlet

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings!

In the project that I am involved, necessary to generate reports with
graphs. I am using the Ireport, where I construct to the together
report and the graph. My problem consists in when I execute servlet to
generate the report I happen the following exceptions:

D:\JAVA\jboss-3.2.3\server\default\tmp\deploy\tmp6800webField.war\relatorios\classic.java:97: package it.businesslogic.ireport.chart does not exist
08:45:08,890 ERROR [STDERR] value = (java.awt.Image)((java.awt.Image)it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(new String[]{"antialias=true","tooltips=false","legend=false","chartName=Bar","plotOrientation=2","foregroundAlpha=0.33","valueLabel=",
"subtitle=","plotBackground=[255,255,255]","quality=1","height=210","titlePosition=1","chartBackground=[255,255,255]","width=521",
"depthFactor=0.2","serie2=SERIE_PAIS","serie1=SERIE_PAIS","serie0=SERIE_POPULACAO","categoryLabel=","title="}, (it.businesslogic.ireport.IReportScriptlet)((net.sf.jasperreports.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())));

08:45:08,890 ERROR [STDERR] ^
08:45:08,906 ERROR [STDERR] D:\JAVA\jboss-3.2.3\server\default\tmp\deploy\tmp6800webField.war\relatorios\classic.java:205: package it.businesslogic.ireport does not exist
08:45:08,906 ERROR [STDERR] value = (java.awt.Image)((java.awt.Image)it.businesslogic.ireport.chart.DefaultChartFactory.drawChart(new String[]{"antialias=true","tooltips=false","legend=false","chartName=Bar","plotOrientation=2","foregroundAlpha=0.33","valueLabel=",
"subtitle=","plotBackground=[255,255,255]","quality=1","height=210","titlePosition=1","chartBackground=[255,255,255]","width=521",
"depthFactor=0.2","serie2=SERIE_PAIS","serie1=SERIE_PAIS","serie0=SERIE_POPULACAO","categoryLabel=","title="}, (it.businesslogic.ireport.IReportScriptlet)((net.sf.jasperreports.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())));


Somebody please helps me!
Thank for the attention!

[edited to add line breaks]
[ December 02, 2004: Message edited by: Jeanne Boyarsky ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You question is off topic for this forum.

This forum is for Servlets questions.

I am going to move this thread to the more appropriate, IDEs and Other Tools forum

Thanks and good luck

Mark
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like a classpath problem. From http://jasperreports.sourceforge.net/quick.how.to.html#compile :


jasper.reports.compile.class.path
By default, ^JasperReports uses the current JVM classpath to compile the report class (java.class.path system property). To customize this report compilation process, ^JasperReports lets you override the default behavior by supplying a value to the jasper.reports.compile.class.path system property, which will be used as classpath for the report class compilation.

 
Antonio Ten�rio
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ilja Preuss ...


I seting path jasper.reports.compile.class.path, as it follows below:

System.setProperty("jasper.reports.compile.class.path",context.getRealPath("/WEB-INF/lib/jasperreports-0.6.1.jar")+ System.getProperty("path.separator")+ context.getRealPath("/WEB-INF/classes/"));

This would have to function?

When I am using only reports without charts this functions, but when
insert some chart in the report, happens this error.
I do not know if it is because I am using the Ireport to generate the reports?
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What JasperReports does is generating Java source code from your XML report description and compile it to a class file. From the error message, it seems that you are using classes from the it.businesslogic.ireport package in the report definition - presumedly classes from the IReport jar, so that jar would need to be in the class path, too.

Does that help?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic