2 Replies Latest reply on May 24, 2011 9:35 AM by lvdberg

    Jasper Report integration

    rogermorituesta.rogermori.yahoo.com

      Dear Partners:


      In order to integrate Jasper reports with my current jboss-seam-2.2.0.GA (seam-gen, Richfaces, Ear) project, I'd appreciate you help answering the questions and advising about procedure listed below.


      Thank you very much.


      Roger.



      Questions:




      1. What is the version of IReport and Jasper compatible with jboss-seam-2.2.0.GA/2.2.2.Final?

      2. Do I need to upgrade to jboss-seam 2.2.2.Final version?

      3. What are Jasper's jar files required?

      4. What are the Seam's jar files to be updated, and to what version?



      Procedure:



      Using  a Hibernate data source, I'm trying to integrate Jasper reports to my current project, which contains around 250 annotated  EJB3-entity-beans.


      I have started creating the hibernate hbm.xml files via Eclipse - Jboss Tools. But I'm getting this exception: EnumDeclaration cannot be cast to org.eclipse.jdt.core.dom.TypeDeclaration.


      So, I'm switching over NetBeans towards the same target

        • 1. Re: Jasper Report integration
          kragoth

          To be fair unless you are specifically using the seam-pdf functionality then there's no real dependency between seam and jasper. There is a dependency between iReport and Jasper but it all comes down to the version of Jasper you choose.


          My app doesn't use seam-pdf, all our reports are designed through iReport and then compiled and wared up with the rest of the app. So seam has no part in our reporting infrastructure.


          So, I think before you worry too much about versions and all that decide how you are going to do your reports from an infrastructure point of view.


          With regards to what jars...look at some Jasper examples it should be pretty straight forward.

          • 2. Re: Jasper Report integration
            lvdberg

            Hi Roger,


            I am a big Maven fan, especially to figure out dependencies. Eclipse has a very useful plugin for maven. Even if you don't want to develop/build, you can use Maven for a simple dependency task, You crate a almost empty project and define the JasperReport version you want. Maven will figure out all the dependencies for you.


            Concerning Seam: You should update to Seam 2.2.2.Final because it solved an important security issue.


            Leo