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

无法打开驱动程序的连接:org.eclipse.birt.report.data.oda.jdbc,eclipse,birt,Eclipse,Birt,我有以下问题 在Eclipse中,在报表设计透视图中,当我尝试预览时,会出现以下错误: 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.bi

我有以下问题

在Eclipse中,在报表设计透视图中,当我尝试预览时,会出现以下错误:

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,我不知道下一步要检查什么。

您的JDBC驱动程序必须复制到该目录,另请参见做一件事MARA,转到数据源选项。选择那边的JDBC连接do
Next
。您将在窗口的左下角找到“管理驱动程序”按钮。选择它,将出现一个名为管理JDBC驱动程序的新控制台窗口。在那里你会发现两个标签Jar文件和驱动程序。现在选择Jar文件并添加一个新创建的
.Jar
文件(知道如何创建.Jar文件很简单,用谷歌搜索一下)。单击“确定”。你完了

现在,只要您转到数据源并选择驱动程序类=
com.microsoft.sqlserver.jdbc.SQLServerDriver
(或者您可以看到它转到
com.microsoft.sqlserver.jdbc.SQLServerDriver(com.microsoft.sqlserver.jdbc.SQLServerDriver(v4.0)v4.0)
)只需将连接字符串写入基本url。(不要忘记从正在使用的服务器端打开端口)

希望它能起作用。

这对我起作用了

从谷歌下载mysql-connector-java-5.1.44-bin.jar文件

将jar文件粘贴到位置:Eclipse⁩/⁨目录⁩/⁨日食⁩/⁨插件⁩/org.eclipse.birt.report.data.oda.jdbc\u…/drivers⁩* 文件夹

将“mysql-connector-java-5.0.8-bin.jar”jar文件粘贴到

位置:WEB-INF\platform\plugins\org.eclipse.birt.report.data.oda.jdbc\u INSTALLED\u VERSION\drivers文件夹

转到管理驱动程序,在jar文件部分下,使用添加选项,从本地计算机的任何位置选择mysql-connector-java-5.1.44-bin.jar文件,然后测试连接


连接成功

因此。。。我既不能在eclipse中也不能在jboss中查看报告。我将mysql-connector-java-5.1.11-bin.jar复制到for eclipse-eclipse\eclipse 3.5.2 RCP+JEE\plugins\org.eclipse.birt.report.data.oda.jdbc\u 2.5.2.v20100205\drivers和eclipse\eclipse 3.5.2 RCP+JEE\plugins\org.eclipse.birt.report.viewer\u 2.5.2.v20091210\birt\WEB-INF\plugins\org.eclipse.birt.report.data.oda.jdbc\u 2.5.2.2.2.v202002002005\drivers和forjboss deploy\birt.war\WEB-INF\platform\plugins\org.eclipse.birt.report.data.oda.jdbc_2.6.1.v20100909\driversfor eclipse-处理过程中发生异常。有关详细信息,请参阅以下消息:无法打开驱动程序的连接:org.eclipse.birt.report.data.oda.jdbc。org.eclipse.birt.report.data.oda.jdbc.jdbc异常:无法加载jdbc驱动程序类:com.mysql.jdbc.Driver。对于jboss-对于jboss列表(id=997):-无法加载报告查询:997。为ID为997的报表元素生成报表文档时出错。请双击BIRT设计器并单击“管理驱动程序…”按钮打开数据源。其中列出了在驱动程序目录中找到的驱动程序。请检查该视图中是否存在MySQL驱动程序,否则请添加驱动程序,并检查报告是否在BIRT Designer中正常运行。我花了一分钟才意识到MARA是OP.:D