Insert Witty Irony Here

vince kraemer's Weblog


20060325 Saturday March 25, 2006

This Is My 60th Entry I just noticed that a new entry would be my 60th. So, here is to 60. I hope my next 60 entries are "better" than these first 60. (2006-03-25 18:12:33.0) Permalink Comments [1]

BIRT and GlassFish b41 The BIRT project includes a web application for displaying reports. After some fits and starts, folks have been able to get it working on GlassFish. While folks were able to get it working, I did not like the "solution". I spent a bit of time with BIRT 2.0.1 and build 41 to see if I could get a better solution.

I have been able to deploy 2.0.1 on GlassFish build 41, by following the instructions for JBoss, with a couple small changes:

  • I used the asadmin deploydir command, instead of copying files to a deploy directory. GlassFish has an autodeploy directory, but it expects archives to be placed there, not "exploded" archives.
  • I did not need to copy the files from Axis 1.2.1, listed in the instructions. It looks like the files are already there in the 2.0.1 release.
  • I created a <BIRT-ROOT>/WEB-INF/sun-web.xml file. It looked like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
    <sun-web-app error-url="">
      <context-root>/birt-viewer</context-root>
      <class-loader delegate="false"/>
      <jsp-config>
        <property name="classdebuginfo" value="true">
          <description>Enable debug info compilation in the generated servlet class</description>
        </property>
        <property name="mappedfile" value="true">
          <description>Maintain a one-to-one correspondence between static content and the generated servlet class' java code</description>
        </property>
      </jsp-config>
    </sun-web-app>
    
  • I did need to copy commons-logging-1.0.4.jar from Axis 1.2.1, into <BIRT-ROOT>/WEB-INF/lib.
  • I had to copy the derby.jar from <BIRT-ROOT>/plugins/org.eclipse.birt.report.data.oda.jdbc to <BIRT-ROOT>/WEB-INF/lib

After doing this, I was able to view the "installation report" and the "more complex report". (2006-03-25 17:06:21.0) Permalink Comments [4]

Calendar

« March 2006 »
SunMonTueWedThuFriSat
   
2
5
9
10
15
16
17
18
20
21
22
23
24
26
27
29
30
 
       
Today

RSS Feeds

XML
All
/5 in 5
/Compile Time
/Ease of Evolution
/General
/GlassFish
/Gotchas
/Java
/Music
/NetBeans
/Sailfin

About Me

Photo of Vince Kraemer
Short Bio

Search

Links


Navigation



Subscribe with Bloglines Add to Technorati Favorites

Referers

Today's Page Hits: 361