BIRT/WebSphere Deploy

引用

BIRT WebSphere 6.0.1 Deployment

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)首部的版本即可兼

容。


一、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. 


引用
Example application.xml for WAS 6.0.1


<?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

你可能感兴趣的:(birt,websphere)