【问题标题】:Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc. using database postgres无法打开驱动程序的连接:org.eclipse.birt.report.data.oda.jdbc。使用数据库 postgres
【发布时间】:2020-05-20 06:25:07
【问题描述】:

我正在使用 BIRT 和 postgresql 编写报告。虽然我能够使用 BIRT 查看器成功运行报告,但当我尝试与 tomcat 集成时,它会给出以下错误-

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: org.postgresql.Driver.

虽然我已将 oda.jdbc.driver "postgresql-42.2.5" 放置在位置 "\WEB-INF\lib" 但我仍然面临此错误。

我正在跑步:

  • Birt版本:-4.8.0
  • postgres 版本:- postgres9.5 (1.22.2)

【问题讨论】:

标签: postgresql tomcat birt


【解决方案1】:

查看错误后,似乎 JDBC 驱动程序 jar 位于 BIRT 运行时的类路径中,因此无法加载驱动程序并引发错误。

请确保将驱动程序 jar 放入服务器中安装的 BIRT 运行时的 libs 目录中,并且在运行时可在类路径中使用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-24
    • 2014-05-22
    • 1970-01-01
    • 2019-06-22
    • 2018-10-04
    • 2021-01-29
    • 1970-01-01
    • 2012-09-17
    相关资源
    最近更新 更多