无法打开驱动程序的连接:org.eclipse.birt.report.data.oda.jdbc

问题描述 投票:2回答:2

我遇到了以下问题

在Eclipse中,在Report Design Perspective中,当我尝试预览时,我收到以下错误:

Chart NewChart: 
+ An exception occurred during processing. Please see the following message for details:
Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.
    org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot load JDBC Driver class: com.mysql.jdbc.Driver. 

我还在文件夹org.eclipse.birt.report.data.oda.jdbc / drivers中检查了Eclipse,它是空的。应该是吗?我检查了externalLibs目录,并且我有mysql-connector.jar,我不知道下一步要检查什么。

eclipse birt
2个回答
0
投票

必须将JDBC驱动程序复制到该目录,另请参阅http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php#install_jdbc


4
投票

做一件事MARA,转到数据源选项。选择JDBC Connection在那里做Next。您将在窗口的左下角找到“管理驱动程序”按钮。选择它,一个名为Manage JDBC Drivers的新控制台窗口将会发展。你会在那里找到两个标签Jar Files and Driver。现在选择Jar Files并添加一个新创建的.jar文件(知道如何创建一个.jar文件,这很容易,谷歌吧)。单击确定。你完成了。

现在每当你去数据源并选择Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver。(或者你可能会看到它转向com.microsoft.sqlserver.jdbc.SQLServerDriver(com.microsoft.sqlserver.jdbc.SQLServerDriver (v4.0) v4.0))只需在Base url上写连接字符串。 (不要忘记从正在使用的服务器端打开一个端口)。

希望它有效。

© www.soinside.com 2019 - 2024. All rights reserved.