I got the following problem
In Eclipse, in the Report Design Perspective , when I try to preview I get the following error:
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.
I also checked in Eclipse in the folder org.eclipse.birt.report.data.oda.jdbc/drivers and it was empty. Should it be? I checked the externalLibs directory, and there I have mysql-connector.jar and I do not know what to check for next.
Do one thing MARA, go to the Data Source option. Select JDBC Connection over there do Next
. You will find an Manage Drivers button in the left-bottom of the window. Select it, a new console window named Manage JDBC Drivers will evolve. There you will find two tabs Jar Files and Driver. Now select Jar Files and add a newly created .jar
file (know how to create a .jar file it's quite easy, google it). Click Ok . You are done.
Now whenever you will go the data source and select Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver
.(Or you may see its turned to com.microsoft.sqlserver.jdbc.SQLServerDriver(com.microsoft.sqlserver.jdbc.SQLServerDriver (v4.0) v4.0)
) just write the connection string on the Base url . (Don't forget to open a port from the server side you are using).
Hope it works.
您的 JDBC 驱动程序必须复制到该目录,另请参见http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php#install_jdbc
This worked for me
Download mysql-connector-java-5.1.44-bin.jar file from google
Paste the jar file to location: Eclipse/Contents/Eclipse/plugins/org.eclipse.birt.report.data.oda.jdbc_ .../drivers* folder
or
paste "mysql-connector-java-5.0.8-bin.jar" jar file to
location: WEB-INF\\platform\\plugins\\org.eclipse.birt.report.data.oda.jdbc_INSTALLED_VERSION\\drivers folder
Go to manage drivers , under jar files section use add option and select the mysql-connector-java-5.1.44-bin.jar file from any location from your local machine and then Test Connection
Connection Successful
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.