[转载]Installing the BIRT Viewer in Tomcat

本文档详细介绍了如何将BIRT报表查看器部署到Apache Tomcat及JBoss应用服务器的具体步骤,包括安装必要的组件、配置文件路径等,并提供了测试复杂报表的方法。
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:

  • 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(我使用的是birt-runtime-2.1.2版本,目录名是WebViewerExample) to the webapps directory of your Tomcat installation. For ease of reference, rename the directory to "birt-viewer".
  • Copy additional files to the directory structure described in the BIRT Runtime Note below (iText and prototype.js).向下面看
  • Stop, then restart Tomcat.
  • Display the Tomcat manager application to check that the viewer is deployed: http://localhost:8080/manager/html.
  • Verify that birt-viewer is listed as an application, then click on the birt-viewer link.
  • A page confirming that the BIRT viewer has been installed should be displayed. Click on the link labeled "View Example" to confirm that your installation is working properly.

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

【无人机】基于改进粒子群算法的无人机路径规划研究[和遗传算法、粒子群算法进行比较](Matlab代码实现)内容概要:本文围绕基于改进粒子群算法的无人机路径规划展开研究,重点探讨了在复杂环境中利用改进粒子群算法(PSO)实现无人机三维路径规划的方法,并将其与遗传算法(GA)、标准粒子群算法等传统优化算法进行对比分析。研究内容涵盖路径规划的多目标优化、避障策略、航路点约束以及算法收敛性和寻优能力的评估,所有实验均通过Matlab代码实现,提供了完整的仿真验证流程。文章还提到了多种智能优化算法在无人机路径规划中的应用比较,突出了改进PSO在收敛速度和全局寻优方面的优势。; 适合人群:具备一定Matlab编程基础和优化算法知识的研究生、科研人员及从事无人机路径规划、智能优化算法研究的相关技术人员。; 使用场景及目标:①用于无人机在复杂地形或动态环境下的三维路径规划仿真研究;②比较不同智能优化算法(如PSO、GA、蚁群算法、RRT等)在路径规划中的性能差异;③为多目标优化问题提供算法选型和改进思路。; 阅读建议:建议读者结合文中提供的Matlab代码进行实践操作,重点关注算法的参数设置、适应度函数设计及路径约束处理方式,同时可参考文中提到的多种算法对比思路,拓展到其他智能优化算法的研究与改进中。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值