`
dodoflying
  • 浏览: 180812 次
社区版块
存档分类
最新评论

[转载]Installing the BIRT Viewer in Tomcat

    博客分类:
  • j2ee
阅读更多
from
http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php

Using Tomcat

This page explains how to deploy the BIRT viewer to a J2EE container. We'll use Apache Tomcat, since it is open source and readily available. The same concepts, perhaps with different details, apply to other app servers. These instructions assume you'll install Tomcat on your own machine using the default port number of 8080.

If you don’t have Tomcat installed on your system you can download it from http://jakarta.apache.org/tomcat. BIRT works with the 4.1.x and 5.5.x verisons of Tomcat.

Install the Viewer

Deploy the BIRT Viewer application. Follow these steps:

If you choose to put the Viewer into some other location, you'll need to use a context entry within the server.xml file to indicate the deployment location. See Tomcat documentation for details.

Birt 2.1 Note:

    If you are installing BIRT 2.1 or later the Web Viewer Example has been renamed to WebViewerExample.

iText and prototype.js

Verify that you have downloaded iText 1.3 and prototype.js v1.4.0(only required for BIRT 2.0.2 and earlier builds) and follow the note below:

Birt 2.0.2 Runtime Note:

  • If you are installing the BIRT 2.0.2 Runtime (J2EE Application Server Deployment), The iText and prototype files will need to be copied to the birt-runtime/Web Viewer Example directory structure.
  • Copy itext-1.3.jar to /Web Viewer Example/plugins/org.eclipse.birt.report.engine.emitter.pdf/lib.
  • Copy prototype.js v1.4.0 to /Web Viewer Example/ajax/lib.

Birt 2.1 Runtime Note:

  • If you are installing the BIRT 2.1 Runtime (J2EE Application Server Deployment), The iText file will need to be copied to the birt-runtime/WebViewerExample directory structure.
  • Copy itext-1.3.jar to /WebViewerExample/WEB-INF/platform/plugins/com.lowagie.itext/lib.

Birt 2.1.1 Runtime Note:(我使用2.1.2 Runtime)

  • If you are installing the BIRT 2.1.1. or 2.1.2 Runtime (J2EE Application Server Deployment),
  • Copy itext-1.3.jar to /WebViewerExample/WEB-INF/platform/plugins/com.lowagie.itext/lib.
  • Copy iTextAsian.jar to /WebViewerExample/WEB-INF/platform/plugins/com.lowagie.itext/lib.

Birt 2.2M2 Runtime Note:

  • If you are installing the BIRT 2.2M2 or later Runtime (J2EE Application Server Deployment),
  • Copy itext-1.4.6.jar to /WebViewerExample/WEB-INF/platform/plugins/com.lowagie.itext/lib.
  • Copy iTextAsian.jar to /WebViewerExample/WEB-INF/platform/plugins/com.lowagie.itext/lib.


Install your JDBC Drivers

Add the jar files for your JDBC drivers to the Viewer. Copy the driver the following directory:

Birt 2.0.2 Note:

    If you are installing BIRT 2.0.2 or earlier the driver needs to be copied to birt-viewer/plugins/org.eclipse.birt.report.data.oda.jdbc/drivers.

Birt 2.1 Note:

    If you are installing BIRT 2.1 or later the driver needs to be copied to birt-viewer\WEB-INF\platform\plugins\org.eclipse.birt.report.data.oda.jdbc \drivers.(实际情况和
org.eclipse.birt.report.data.oda.jdbc这个名字不太相同

Testing a More Complex Report

We'll test the viewer further using one of the example reports created for the "Classic Models" database. Note that Classic Models database is included in the birt runtime distribution so no further set-up is required. Follow these steps:

  • Download the zip file with the BIRT report engine runtime. The file is named birt-runtime-
  • Click on the following link to download the example report design, SalesInvoice.rptdesign into another browser window. Use the "Save as..." command from the file menu to save the report into the birt-viewer/report directory.
  • If you've installed everything in its default location, then click on the following link. If you've changed anything, then copy the following URL into your browser and make the needed changes.
    http://localhost:8080/birt-viewer/run?__report=Report\SalesInvoice.rptdesign
    or
    http://localhost:8080/birt-viewer/frameset?__report=Report\SalesInvoice.rptdesign
  • The report should run and appear in your browser. See Viewer Usage for information on the Viewer Operations.

Deploying to JBoss

To deploy the BIRT Viewer application to JBoss, follow these steps:
  • Download the zip file with the BIRT report engine runtime. The file is named birt-runtime-version#.zip.
  • Unzip the file in a staging area.
  • Look under the birt-runtime-
  • Copy the "Web Viewer Example" directory to your JBoss installation, under the deploy directory for your configuration. (eg) C:\jboss-4.0.3SP1\server\default\deploy.
  • Rename the Web Viewer Example directory to birt.war, so it will deploy in place.
  • Copy itext-1.3.jar (BIRT 2.1) or itext-1.4.6.jar (BIRT 2.2) to /WebViewerExample/WEB-INF/platform/plugins/com.lowagie.itext/lib.
  • (BIRT 2.1.1 or later) Copy iTextAsian.jar to /WebViewerExample/WEB-INF/platform/plugins/com.lowagie.itext/lib.
  • Start up JBoss and enter the URL to BIRT (ie http://localhost:8080/birt) and run the test report..

Other J2EE Servers

We are currently working on instructions for other application servers

分享到:
评论

相关推荐

    Integrating and Extending BIRT 2nd Edition

    Chapter 5 Using Eclipse BIRT Web Viewer Part II Understanding the BIRT Framework Chapter 6 Understanding the BIRT Architecture Chapter 7 Understanding the Report Object Model Part III Scripting in a...

    Tomcat The Definitive Guide, 2nd Edition(PDF)

    Updated for the latest version of Tomcat, this new edition offers a complete guide to installing, configuring, maintaining and securing this servlet container. In fact, with such a wealth of new ...

    驱动 Intel

    6. Installing the Software in Interactive Mode 7. Installing the Software in Silent Mode 8. Installing the INF Files Prior to OS Installation 8A. Installing the Windows* 2000 INF Files Prior to OS ...

    Actuate--administering-iserver-system.pdf

    - **JavaScript Editor Plug-In for Eclipse**:用于在 Eclipse 环境中编辑 JavaScript 脚本。 - **Apache Software Foundation 的多个项目**:如 Axis、Batik、Commons CLI、Commons Codec 等,用于提供各种服务...

    Failed to install Tomcat6 service(Tomcat6安装失败解决方法)

    3. **具体错误**:“Failed installing Tomcat6 service”。 4. **错误位置**:在执行 `$tomcat_install/logs/jakarta_service_date.log` 日志文件中记录的 `service.bat` 文件时出现。 #### 解决方案 为了解决...

    linux环境Tomcat安装配置手册

    本手册旨在指导用户在 Linux 环境中安装和配置 Tomcat 服务器, step-by-stepguiding users through the process of installing and configuring Tomcat on a Linux environment. 知识点一:下载和安装 Tomcat 在...

    安捷伦E6000C OTDR仿真软件

    prior to installing the OTDR TraceViewer III since some shared libraries may have to be updated. Should system libraries have to be updated, you will be prompted to reboot your PC to complete the ...

    apache-tomcat-8.5.34注册服务包.zip

    官方原版一键注册tomcat为windows服务,tomcat8w.exe界面更改tomcat内存大小,开机自启,延迟自启 D:\x\develop\apache-tomcat-8.5.34\bin>service.bat install Installing the service 'Tomcat8' ...

    tomcat 环境配置及问题处理

    - `Installing the service ‘Tomcat6’……..` - `Using CATALINA_HOME: “D:\Program Files\Tomcat”` - `Using CATALINA_BASE: “D:\Program Files\Tomcat”` - `Using JAVA_HOME: “D:\Program Files\Java\...

    Installing the Zend Debugger PDF

    标题中的“Installing the Zend Debugger PDF”实际上指的是一个关于如何安装Zend Debugger的PDF文档的安装指南。Zend Debugger是一款功能强大的PHP扩展,它主要用于在开发过程中进行代码调试,通过将服务器端的调试...

    Installing-Mumax-and-Gnuplot-in-Windows-10-Step-by-Step

    安装 Mumax 3.9.1 和 Gnuplot 5.2 在 Windows 10 中的步骤指南 在这篇文章中,我们将一步步指导用户安装 Mumax 3.9.1 和 Gnuplot 5.2 在 Windows 10 操作系统中。这篇文章将为用户提供详细的安装步骤和相关知识点,...

    Installing the Avaya S8800 Server for Avaya Aura™ Communication Manager

    Installing Avaya S8800 Server

    TAP安装故障排除.docx

    根据本人运维经验,结合openVPN社区相关案例,针对TAP-Windows-adapter安装失败“an error occured installing the TAP device driver”错误提示,提出五种解决方案

    Installing Configuring Alfresco ECM 3.1

    - **Installing the Alfresco Tomcat bundle on Linux**:对于 Linux 平台,同样提供了仅安装 Alfresco 和 Tomcat 的捆绑包的方法。 - **Installing Alfresco on Mac (full installation)**:Mac 用户的完整安装指南...

    Installing the Google Search Appliance.pdf

    ### 安装Google搜索设备的关键知识点 #### 一、概览 Google搜索设备(Google Search Appliance)是一款由Google提供的企业级搜索解决方案,用于优化组织内部文档、网站内容的搜索体验。安装该设备通常分为两个主要...

    001 Lab 1 - Installing the GSR

    ### 安装Gomez Script Recorder (GSR) 实验指南 #### 一、实验简介 在本实验(Lab 1)中,我们将详细介绍如何下载并安装Gomez Script Recorder(GSR),这是一种用于录制Web应用程序测试脚本的强大工具。...

    Oracle Solaris 11.2 Installing and Configuring OpenStack in Ora

    在本文档中,我们将深入探讨如何在Oracle Solaris 11.2操作系统环境下安装和配置OpenStack。Oracle Solaris 11.2是Oracle公司推出的一款先进的Unix操作系统,以其稳定性和安全性著称,而OpenStack则是一个开源的...

    Window下安装Tomcat服务器的教程

    1 下载并准备 首先,我们需要到官网下载Tomcat。 将Tomcat下载Windows的zip文件下载到本地: 接下来,我们将下载的zip文件解压出来,如下: ...Installing the service 'Tomcat8' ... Using CATALINA_H

    Flex Builder Plug-in and Adobe

    The next crucial step is installing the Flex Builder plug-in for Eclipse. The latest version of the plug-in can be found on the official Adobe website. It's important to avoid accidentally downloading...

Global site tag (gtag.js) - Google Analytics