Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

View Jasper Report

 
Ali lorfe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi experts , I am trying to view Jasper Report,I put all ireport jar files and log4j jar in the class path,
still I am getting this error why !!!

This following code I used in my example

String reportSource = "report1.jrxml";
JasperReport jR = JasperCompileManager.compileReport(reportSource);
JasperPrint JP = JasperFillManager.fillReport(jR, null, conn);
JasperViewer.viewReport(JP);


the exception is

log4j:WARN No appenders could be found for logger (net.sf.jasperreports.engine.xml.JRXmlDigesterFactory).
log4j:WARN Please initialize the log4j system properly.


 
bala nannaka
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add appender some thing like this in log4j.xml

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic