首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

tomcat6.0上部署birt报表和出现的有关问题

2012-11-07 
tomcat6.0下部署birt报表和出现的问题1.去官方下载birt-runtime-2_6_1.zip的运行环境;2.解压文件,拷贝下面

tomcat6.0下部署birt报表和出现的问题

1.去官方下载birt-runtime-2_6_1.zip的运行环境;

2.解压文件,拷贝下面的Web Viewer Example文件到tomcat服务器下的webapps,可以修改名称为birt;
3.把sql的驱动包放到\apache-tomcat-6.0.14\webapps\birt\WEB-INF\lib 我的是sqlservice( jtds-1.2.jar);
4.把prototype.js 拷贝到\apache-tomcat-6.0.14\webapps\birt\webcontent\birt\ajax 下面;

5.把写好的报表文件(*.rptdesign)放在\apache-tomcat-6.0.14\webapps\birt 如:datacount.rptdesign
6.下载commons-logging-1.1.jar和commons-logging-api-1.1.1.jar放在apache-tomcat-6.0.14

?? ?\webapps\birt\WEB-INF\lib
7.启动tomcat服务器
6.打开浏览器,在地址栏输入:
8.输入地址:http://localhost:8080/birt/frameset?__report=datacount.rptdesign,报表将打开。

?

注意:tomcat 6.0没有 commons-logging-1.1.jar和commons-logging-api-1.1.1.jar这2个jar包,如果不放进去,会出现找不到类,和404 - Servlet ViewerServlet is not available 的一些错误。

?

部署之后,如果经常性出现 OutOfMemoryError: PermGen space的错误 就在ecipse下面的修改下tomcat的optionnal java VM arguments 的配置: -Xms256m -Xmx256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m

?

去掉BIRT Report Viewer和一些按钮 在URL 加个参数:

__showtitle=false&__toolbar=false&__navigationbar=false

如:/birt/frameset?__report=datacount.rptdesign&__showtitle=false&__toolbar=false&__navigationbar=false

热点排行