简体   繁体   English

Eclipse和BIRT错误 - 在Web查看器中查看报告

[英]Eclipse and BIRT Error - View Report in Web Viewer

I am using Eclipse 4.3 Kepler with BIRT 4.3.2 on a 64-bit machine running Windows 7 and Java 8. 我在运行Windows 7和Java 8的64位计算机上使用Eclipse 4.3 Kepler和BIRT 4.3.2。

When I select Run -> View Report -> In Web Viewer the following error message is displayed: 当我选择运行 - >查看报告 - >在Web查看器中时,会显示以下错误消息:


HTTP ERROR: 500 HTTP错误:500
Problem accessing /viewer/frameset. 访问/查看器/框架集时出现问题。 Reason: 原因:

Server Error 服务器错误

Powered by Jetty:// 由Jetty提供://


This happens even with a simple "Hello World" report that contains only static (ie non-dynamic) content. 即使使用仅包含静态(即非动态)内容的简单“Hello World”报告,也会发生这种情况。

Does anyone know how I can fix this? 有谁知道我怎么解决这个问题?

Seems there is a problem with the "View Report" Option where the internal Jetty Server does not work with Java 8. 似乎“查看报告”选项存在问题,其中内部Jetty服务器无法与Java 8一起使用。

Downgrading to Java 7 worked fine. 降级到Java 7工作正常。 In Java 8 you have to use the View Report as option eg View Report as Doc. 在Java 8中,您必须使用“查看报告”作为选项,例如“将报告视为文档”。

See also here: https://www.eclipse.org/forums/index.php/t/739682/ There is a bugzilla entry, unfortunatly with no solution yet. 另见: http//www.eclipse.org/forums/index.php/t/739682/有一个bugzilla条目,不幸的是还没有解决方案。

Check Data source. 检查数据源。

I get same error when i try to run the report taken from the server having only DB driver class and JNDI URL and having blank in DB URL, Username and Password. 当我尝试运行从仅具有DB驱动程序类和JNDI URL并且在DB URL,用户名和密码中具有空白的服务器获取的报告时,我得到相同的错误。

I suspect the problem is that you have not installed a web viewer like Apache Tomcat http://tomcat.apache.org 我怀疑问题是你没有安装像Apache Tomcat http://tomcat.apache.org这样的Web查看器

In much the same way that you can not open a BIRT report as Excel on a machine without Excel. 与在没有Excel的计算机上无法以Excel格式打开BIRT报告的方式大致相同。 you can not open as a web page without a web viewer. 没有Web查看器,您无法打开网页。

I put some similar comments on the question BIRT report not running in web viewer but the OP has not followed through. 我对BIRT报告没有在网络浏览器中运行的问题提出了类似的评论,但是OP没有遵循。

Work in progress, attempting to recreate a functional system that matches a working version (4.2.0). 正在进行中,尝试重新创建与工作版本匹配的功能系统(4.2.0)。

  • From the server you are installing on (ie MyServerDEV04) 从您正在安装的服务器(即MyServerDEV04)
  • Create a new version of the application go to http://www.eclipse.org/birt/phoenix/ 创建应用程序的新版本,请访问http://www.eclipse.org/birt/phoenix/
    • Download the current version (ie 4.3.2 'All-in-One', Windows 64 BIT) 下载当前版本(即4.3.2'All-in-One',Windows 64 BIT)
    • Create to (save as, or copy to after opening) new file "C:\\Program Files\\eclipse-All-In_One4_3_2 创建到(保存为或打开后复制到)新文件“C:\\ Program Files \\ eclipse-All-In_One4_3_2
  • Install Apache Tomcat from http://tomcat.apache.org/ http://tomcat.apache.org/安装Apache Tomcat
    • Download the current version (ie 7.0 .53 64 BIT) 下载当前版本(即7.0 .53 64 BIT)
    • Create to (save as, or copy to after opening) new files "C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0.53" 创建到(保存为或打开后复制到)新文件“C:\\ Program Files \\ Apache Software Foundation \\ Tomcat 7.0.53”
    • Do a md5 checksum? 做一个md5校验和? NO ; Windows does not have the tool you can get it here https://support.microsoft.com/kb/841290/en-us but not probably not worthwhile for a single event Windows没有你可以在这里获得它的工具https://support.microsoft.com/kb/841290/en-us但对于单个事件可能不值得
    • It looks like for Windows, it is pretty easy. 它看起来像Windows,很容易。 Downloading 7.0 .53 now . 现在下载7.0 .53。
    • Looks like windows-x64.zip is the correct file 看起来像windows-x64.zip是正确的文件
    • Create to (save as, or copy to after opening) new files ""C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0.53" 创建到(保存为或打开后复制到)新文件“”C:\\ Program Files \\ Apache Software Foundation \\ Tomcat 7.0.53“
  • Install Driver For BIRT 为BIRT安装驱动程序

    • You can get the most current 'Microsoft JDBC Driver for SQL Server' at http://msdn.microsoft.com/en-us/data/aa937724.aspx 您可以在http://msdn.microsoft.com/en-us/data/aa937724.aspx上获取最新的“用于SQL Server的Microsoft JDBC驱动程序”
    • C:\\Program Files\\eclipse-All-In_One4_3_2\\plugins\\org.eclipse.birt.report.data.oda.jdbc_4.3.1.v201308301349\\drivers C:\\ Program Files \\ eclipse-All-In_One4_3_2 \\ plugins \\ org.eclipse.birt.report.data.oda.jdbc_4.3.1.v201308301349 \\ drivers
    • C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0\\webapps\\Birt\\WEB-INF\\lib C:\\ Program Files \\ Apache Software Foundation \\ Tomcat 7.0 \\ webapps \\ Birt \\ WEB-INF \\ lib
    • Apache file will not exist until you open BIRT for the first time. 在您第一次打开BIRT之前,Apache文件将不存在。
  • Check that you have both 32 & 64 bit Java is installed http://www.java.com/en/download/manual.jsp 检查您是否安装了32位和64位Java http://www.java.com/en/download/manual.jsp

    • I was browsing with a 32 bit, installing 64 BIT did not give a good test, but it did over come the Java issue BIRT was complaining about. 我正在浏览32位,安装64位BIT没有给出一个好的测试,但它确实超过了BIRT抱怨的Java问题。
  • Launch BIRT - 启动BIRT -
    • Launch using C:\\Program Files\\Apache Software Foundation\\Tomcat 7.0.53\\webapps\\Birt as the workspace 使用C:\\ Program Files \\ Apache Software Foundation \\ Tomcat 7.0.53 \\ webapps \\ Birt作为工作区启动
    • Open workbench 打开工作台
  • Next step is set up house then testing. 下一步是设置房子然后测试。

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

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