Hitachi Vantara Pentaho Community Forums
Results 1 to 24 of 24

Thread: Incorporating BIRT report into Pentaho Demo

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Incorporating BIRT report into Pentaho Demo

    I have created a report using BIRT 2.1 report designer and I would like to know how to put this into the Pentaho demo.

    I understand that maybe I need the RC3 version of the demo from the SVN, but I am not sure.

    Questions:

    - do I need to use RC3 to display my report?
    - if so how do I download and install RC3?

    I have looked at the SVN repository and I can see under pentaho and pentaho-samples that it looks like it can handle BIRT but I don't know how to build the demo

    - how do I add my BIRT report into the demo?

    I would like to use JFreeReport but I found that BIRT had the features that I need that I couldn't find in JFreeReport. (Whether I can achieve the same results in JFreeReport will be another question.)

    Thank you for your help.

  2. #2
    Join Date
    Nov 1999
    Posts
    579

    Default Re:Incorporating BIRT report into Pentaho Demo

    For BIRT 2.1, yes, you'll either need to wait for RC3 (should be any day now), or download and build the code that's in SVN.

    Take care,

    Marc

  3. #3

    Default Re:Incorporating BIRT report into Pentaho Demo

    I would love to wait for RC3 but I don't have that luxury right now.

    How do I build the code in SVN?
    Can you point me to somewhere that tells me what I need to do to build the pentaho-demo enough to get it running on my server?

    All I need is something like, checkout the blah blah subprojects, compile them and copy them into xyz kind of instructions.

    After that, how to incorporate a BIRT report into the demo.
    Has anyone written anything about that yet?
    Searching on my part didn't bring up anything yet.

    If I get some help with this I don't mind writing an article on how to do it for the benefit of the community.

  4. #4
    Join Date
    Nov 1999
    Posts
    579

    Default Re:Incorporating BIRT report into Pentaho Demo

    Well, it's all pretty simple actually. Assuming you're starting with the RC2 PCI, do the following:

    1- Get the pentaho, pentaho-solutions, pentaho-data, and pentaho-preconfiguredinstall projects from SVN. They all need to be siblings in the same base folder. Something like:

    /pentaho-build/pentaho
    /pentaho-build/pentaho-preconfiguredinstall
    /pentaho-build/pentaho-data
    /pentaho-build/pentaho-solutions

    2- Create an override.properties file in the same folder as the pentaho/build.xml. This way, you can tell ANT where to find things the targets need. Here is what my override.properties looks like:

    Code:
    debug=false
    # Override setting
    java1.4.home=C:/j2sdk1.4.2_10
    jre.dir=C:/j2sdk1.4.2_10/jre
    3- Modify the build.xml to point to your javadoc executable. I haven't gotten Brian to make this change be settable from the override.properties file yet. So, I've had to change it myself. Here is what mine looks like:

    Code:
    	<target name="javadoc">
    		<javadoc destdir="${javadoc.dir}/docs/api" 
    				sourcepath="server/pentaho/src" 
    				access="public" 
    				use="true" 
    				notree="false" 
    				nonavbar="false" 
    				noindex="false" 
    				splitindex="true" 
    				author="true" 
    				version="true" 
    				nodeprecatedlist="false" 
    				executable="C:/j2sdk1.4.2_10/bin/javadoc.exe"
    				nodeprecated="false" 
    				packagenames="org.pentaho.*" 
    				excludepackagenames="org.pentaho.test.*, org.hibernate.*" 
    				doctitle="Pentaho BI Platform">
    			<classpath refid="classpath" />
    		</javadoc>
    	</target>
    Notice that the line "executable" has been added. Without this, the ant tasks don't generate the javadoc, and the task fails.

    4- Use ANT to build the pentaho-dist target. There may be other little twiddles you have to do to the override.properties or the build.xml so that it works in your environment. But, for me, this is all I had to do on my XP system.

    At this point, you should have the whole RC3 as distributables, including the whole PCI.

    As for getting your BIRT report into a solution, the solution-building guide covers that. But, in short, you could just copy it, and your action sequence to the samples/reporting folder and it will automatically show up in the PCI.

    Hope this helps,

    Marc

  5. #5

    Default Re:Incorporating BIRT report into Pentaho Demo

    Thank you very much. I will try it out.

  6. #6
    Join Date
    Nov 1999
    Posts
    579

    Default Re:Incorporating BIRT report into Pentaho Demo

    You know, it would be simpler for you to get our RC3 preview than it would for you to build it.

    Go to http://community.pentaho.org/index.php and it will tell you how to download the latest (which has everything in it you're looking for) already built for you.

    You can post issues for this in our RC forum.

    Take care,

    Marc

  7. #7
    dmoran Guest

    Default Re:Incorporating BIRT report into Pentaho Demo

    robbika,

    There is another option if you don't want to build, you can use the nightly build since we are so close to RC3, it is very stable.

    Anonymous FTP:
    download.pentaho.org


    Doug

  8. #8

    Default Re:Incorporating BIRT report into Pentaho Demo

    I followed your instructions but got this error to do with Jasper:

    Code:
    jsp_compile:
      [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.JspC).
      [jasper2] log4j:WARN Please initialize the log4j system properly.
        [mkdir] Created dir: /opt/pentaho-demo-RC3/pentaho/build/pentaho-demo/jboss/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/WEB-INF/classes
    
    BUILD FAILED
    /opt/pentaho-demo-RC3/pentaho/build.xml:692: The following error occurred while executing this line:
    /opt/pentaho-demo-RC3/pentaho/build/pentaho-demo/jboss/precompile.xml:50: The following error occurred while executing this line:
    /opt/pentaho-demo-RC3/pentaho/build/pentaho-demo/jboss/precompile.xml:98: The following error occurred while executing this line:
    /opt/pentaho-demo-RC3/pentaho/build/pentaho-demo/jboss/precompile.xml:42: taskdef class org.apache.jasper.JspC cannot be found

  9. #9
    Join Date
    Nov 1999
    Posts
    579

    Default Re:Incorporating BIRT report into Pentaho Demo

    It almost sounds like the JSP compiler can't be found. You are using a JDK (and not a JRE), correct?

    Assuming your demo will be deployed on a box running JBoss with a JDK (and not the JRE), then you can skip the whole JSP Compile thing. In the build.xml, you'll find this section:

    Code:
      <!-- for precompiled jsps - remove if it causes trouble	--> 	
      <ant antfile="precompile.xml" dir="${build.demo.dir}/jboss" inheritAll="false">
      <!-- <property name="java1.4.home" value="${java1.4.home}" /> -->
    </ant>
    Just do what it says and comment out the block. I think everything else will still work, and the server (again, if you're using a JDK) will compile each JSP the first time it's encountered.

    Take care,

    Marc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.