BIRT/WebSphere Deploy

[quote]
[b]BIRT WebSphere 6.0.1 Deployment[/b]

This entry explains how to deploy the WebViewerExample contained in the BIRT 2.6.2 runtime as an ear file using WebSphere Application Server, Version 6.0.1.0.

【注意】:websphere 6.0.1 不支持高于版本birt 3.7(现在最新版birt4.2),夸版

本的报表文件,无法正常运行,但是只要修改报表文件(**.rptdesign)首部的版本即可兼

容。

[/quote]

一、Modify the birt.war file from the BIRT 2.1.1 runtime

1.Download the BIRT 2.1.1 runtime

2.Download itext-1.3.jar from the links provided on the BIRT installation page http://www.eclipse.org/birt/phoenix/build/

3.Unzip the birt-runtime-2_1_1.zip file.
(1).The birt.war file will appear in the directory you just unzipped the zip file to.

4.Expand the birt.war file.
(1).For example, jar -xvf birt.war.

5.first create a logs directory with an empty file in it so that when the ear is deployed the logs directory will not be ignored
(1).mkdir \birt-runtime\logs
(2).touch \birt-runtime\logs\dummy

6.Under the WEB-INF/platform/plugins/com.lowagie.itext/ directory created after expanding birt.war create a lib directory. Copy itext-1.3.jar file to this directory.

7.Now the birt.war file is ready to be remade again. Go to the directory where you unzipped the birt-runtime zip file and issue this command to recreate the birt.war file;

(1).jar -cvf birt.war WEB-INF/* index.jsp logs report/* scriptlib/* test.rptdesign test1.rptdesign webcontent/*

8.Next, to deploy the application in WebSphere we need to create an ear file which contains an application.xml file, an example is shown at the end of this page.

(1).In the same directory where the birt.war file is create a META-INF directory and in this directory create the application.xml file shown below.

9.Now create the ear file which will be deployed to WAS 6.0.1.0;
(1).cd \birt-runtime\
(2).jar -cvf birtTestEAR.ear META-INF/* birt.war

二、Deploying the ear file to WebSphere 6.0.1

1.Deploy the birtEAR.ear file to WAS 6.0.1 with the following additional steps from a generic deployment:
(1).The 'Class loader mode' for the ear should be 'Parent Last'. Also, I set the WAR class loader policy to 'Application' although this may be optional.
(2).The Web module, birt.war 'Class loader mode' must also be set to Parent Last.


[quote][b]Example application.xml for WAS 6.0.1 [/b]
[/quote]


<?xml version="1.0" encoding="UTF-8"?>
<application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<display-name>
birtEAR</display-name>
<module id="WebModule_1154462768328">
<web>
<web-uri>birt.war</web-uri>
<context-root>birt</context-root>
</web>
</module>
</application>


From:http://wiki.eclipse.org/Birt_WebSphere_Deployment

study websphere:http://www.ibm.com/developerworks/cn/websphere/zones/was/roadmaps/roadmap_was60.html
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值