0 Replies Latest reply on Nov 16, 2009 11:15 AM by cyril vidal

    JBossBirtServlet and wrong reportName path?

    cyril vidal Newbie

      Hello,

      When using <p:birt we must prefix the path of a design report with /, if not we get an exception because the repot is not found...

      <p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:p="http://jboss.com/products/seam/birt"
       designType="run"
       format="pdf"
       designName="/testencoded2.rptdesign"
       title="JBoss Birt Encoding Test">
      


      If we don't want to prefix with the /, we have to change the code in JBossBirtServlet from this:

      // Open report design
      design = birtReportEngine.openReportDesign(sc.getRealPath("/")
      + reportName);
      


      to this one:
      design = birtReportEngine.openReportDesign(sc.getRealPath("/"+ reportName));
      


      Shall we consider this as a bug?

      Regards,
      Cyril.