无法打开驱动程序的连接:org.eclipse.birt.report.data.oda.jdbc。使用数据库postgres

问题描述 投票:0回答:1

我正在将BIRT与postgresql一起使用进行报告。虽然我可以使用BIRT Viewer成功运行报表,但是当我尝试与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个回答
0
投票

查看错误后,似乎JDBC驱动程序jar在BIRT运行时的类路径上处于打开状态,因此它无法加载驱动程序并引发错误。

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

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