简体   繁体   中英

Error with jdbc mysql connections with jasper server

I am using jasper server CP 5.0.0. I have configured the data source properties like this

Set Data Source Type and Properties

Driver (required):com.mysql.jdbc.Driver
URL (required):jdbc:mysql://localhost:3306/jasperserver

The connection is failed when clicked on test connection

When I am running the report I am getting a error

Error Message

com.jaspersoft.jasperserver.api.JSExceptionWrapper: com.mysql.jdbc.Driver

Error Message
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Error Trace

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at 

I have been searching this for a long time with no success.

您应该将mysql drivers jar file添加到项目的build path

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM