1 Reply Latest reply on Mar 16, 2007 12:33 PM by Colin Eberhardt

    jrxml-file in a EJB3-archive

    Irina Vaschenko Newbie

      I have a EJB3-archive. It contains jrxml-file. Usually I perform the following actions to compile a jasper report

       File file = new File("report.jrxml");
       FileInputStream reportStream = new FileInputStream(file);
       JasperDesign jasperDesign = JRXmlLoader.load (reportStream);
       JasperReport jasperReport =
       JasperCompileManager.compileReport(jasperDesign);


      In this particular case my aim is to access jrxml-file from a method of a session-bean. The problem is that I can't read the file from the archive.