In eclipse, I map an odbc driver to a Birt report when I add a postgresql data source. It works fine under eclipse's web preview.Then I copy the project to the folder of birt viewer under Tomcat.
An error message is shown : org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot load JDBC Driver class:
Tomcat cannot find the odbc driver of postgresql. After searching, I discover Tomcat do not share odbc drivers with eclipse, so I need to add the driver to Tomcat separately. The path is shown below:
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\birt-viewer\WEB-INF\platform\plugins\org.eclipse.birt.report.data.oda.jdbc_2.6.0.v20100524
No comments:
Post a Comment