spmkkmps Posted June 20, 2009 Share Posted June 20, 2009 hiin my application i have kept the .jasper file in a separate folder and the java file in a separate folder. in java file i have read the jasper file as given,/reports/filename.jasper. i get the following error when i try to execute it. please get me the solution if anybody faced similar issue in your experience. thanks.please see the runReport(...) method in attached java file and guide me what has to be changed. net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: \reports\ReportPDFFormat.jasper at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:75) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:254) at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:225) at com.jeevan.ProfitLossBusiness.runReportToPDFFormat(ProfitLossBusiness.java:182) at com.jeevan.ProfitLossBusiness.runReport(ProfitLossBusiness.java:156) at com.jeevan.ReportPDFFormat.doGet(ReportPDFFormat.java:74) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source)Caused by: java.io.FileNotFoundException: \reports\ReportPDFFormat.jasper 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