tomcat - org.eclipse.birt.report.data.oda.jdbc.JDBCException : Cannot load JDBC Driver class: org. postgresql.驱动程序

标签 tomcat jdbc birt postgresql-9.2

我遇到错误:

org.eclipse.birt.report.engine.api.EngineException: 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: org.postgresql.Driver.
   at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1245)
   at org.eclipse.birt.report.engine.executor.ExecutionContext.addException(ExecutionContext.java:1224)
   at org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:96)
   at org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)

BIRT 设计器版本 4.4.1.v201408290142。

BIRT 查看器版本:4.3.0。

Apache Tomcat/6.0.24

操作系统:AIX 6.1

Java 6

我已将 postgresql-9.2-1002.jdbc4.jar 放在 WEB-INF/lib 文件夹中,但异常仍然存在。报告从 Eclipse 运行,没有错误。

你能给个建议吗?

最佳答案

可能是 Designer 中使用的驱动程序与您复制到查看器的驱动程序不同。在您的 eclipse 插件目录中,您会找到 org.eclipse.birt.report.data.oda.jdbc_4.4.1.v201408290142 文件夹,其中包含您报告的 jdbc 驱动程序。将其复制并粘贴到 WEB-INF/lib 文件夹中。这很有希望。祝你好运!!

关于tomcat - org.eclipse.birt.report.data.oda.jdbc.JDBCException : Cannot load JDBC Driver class: org. postgresql.驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28030176/

相关文章:

Birt 中的属性绑定(bind)或查询中的 Javascript

tomcat - web.xml 中的多个安全约束不起作用

java - 在 Web 服务器上部署 Tomcat 项目,文件问题

java - 为什么需要数据库代理键的 generatedKeys?

java - 如何将此代码转换为 prepared-statement 或 jdbc 中的语句?

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

java - BIRT 报告每页上的动态(背景)图像

java - MANIFEST.MF Tomcat 的主类无效

apache - NGINX 与 Apache?部署react时选择什么

java CallableStatement 打印过程中的所有参数