This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

View Jasper Report

 
Ali lorfe
Greenhorn
Posts: 1
  • 0
  • 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
  • 0
  • 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