ragnarokkrr Posted August 22, 2006 Share Posted August 22, 2006 Greetings, I have A Report that references a subReport, using relative path from the first package in a ear like that: app.ear-/app.war (archived in app.ear)--/WEB-INF---/lib----/my-app.jar-----/com/app/MyReport.jasper (archived in myapp.jar)-----/com/app/MySubReport.jasper (sibling file archived in myapp.jar) The reference from MyReport to MySubReport is as follows: Code:<subreport isUsingCache="true"><!-- ommited for brevity --> <subreportParameter name="BaseDir"><subreportParameterExpression><![CDATA[$P{BaseDir}]]></subreportParameterExpression></subreportParameter><subreportExpression class="java.lang.String"><![CDATA["/com/app/MySubReport.jasper"]]></subreportExpression> </subreport> When I call MyReport in an RHAS running IAS 10gR3 (with container OC4J 10.1.3) I get an erro saying that the Main Reoprt could not find the subreport.Code:[code]06/08/22 11:42:41 Caused by: net.sf.jasperreports.engine.JRException: Could not load object from location : /com/app/MySubReport.jasper06/08/22 11:42:41 at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:282)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:316)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:399)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillFixedBand(JRVerticalFiller.java:1333)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnFooter(JRVerticalFiller.java:722)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummarySamePage(JRVerticalFiller.java:863)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:768)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:259)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:135)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:730)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:651)06/08/22 11:42:41 at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89)06/08/22 11:42:41 at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)06/08/22 11:42:41 at org.springframework.ui.jasperreports.JasperReportsUtils.renderAsPdf(JasperReportsUtils.java:164) Any help will be apreciated. Thank you! Post edited by: ragnarokkrr, at: 2006/08/22 15:19Post edited by: ragnarokkrr, at: 2006/08/22 15:23 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