简体   繁体   English

如何使用wamp服务器将BIRT报告与php集成?

[英]How to integrate BIRT report with php using wamp server?

I am trying to integrate BIRT report with php. 我正在尝试将BIRT报告与php集成。 I have followed the tutorial from http://www.theserverside.com/news/1363642/Intergrating-BIRT-with-PHP .I have used birt-rcp-report-designer-4_3_1 to design a sample report and was able to view the report using birt report viewer from tomcat http://localhost:8080/Birt-Viewer/frameset?__report=new_report_1.rptdesign .But I am unable to access the javabridge in tomcat as http://localhost:8080/JavaBridge , it is showing 404 error. 我遵循了http://www.theserverside.com/news/1363642/Intergrating-BIRT-with-PHP中的教程我使用birt-rcp-report-designer-4_3_1设计了示例报告,并能够查看使用来自tomcat http://localhost:8080/Birt-Viewer/frameset?__report=new_report_1.rptdesign birt报表查看器生成报表http://localhost:8080/Birt-Viewer/frameset?__report=new_report_1.rptdesign 。但是我无法以http://localhost:8080/JavaBridge身份访问tomcat中的http://localhost:8080/JavaBridge ,显示404错误。 If I use php code 如果我使用php代码

<?php 
require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc");

echo java("java.lang.System")->getProperties();
?>

then also it is showing 404 error. 然后它也显示404错误。 Also after unzipping the JavaBridge.war in the tomcat there is no folder named "java" inside JavaBridge. 同样,在tomcat中解压缩JavaBridge.war之后,JavaBridge中没有名为“ java”的文件夹。 Probably it is because of that it is showing 404 error. 可能是因为它显示404错误。 Please help. 请帮忙。

Try to use absolute or relative path to your php java bridge file ie (java.inc). 尝试使用到您的PHP Java桥文件的绝对或相对路径,即(java.inc)。 In my case also that was showing problem from http path. 就我而言,这也显示了来自HTTP路径的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM