设为首页 收藏本站
查看: 411|回复: 0

[经验分享] [转载]Installing the BIRT Viewer in Tomcat

[复制链接]

尚未签到

发表于 2017-1-29 08:44:39 | 显示全部楼层 |阅读模式
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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-334738-1-1.html 上篇帖子: tomcat启动报错No UserDatabase component found under key UserDatabase 下篇帖子: Tomcat给我的java.lang.OutOfMemoryError: PermGen
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表