i am developing an project based on spring and hibernate and want to deploy it on GCE.
so i added mysql connector
then i added appengine-web.xml and enable
<?xml version="1.0" encoding="utf-8"?>
<!-- [START config] -->
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>yugma-146007</application>
<vm>true</vm>
<threadsafe>true</threadsafe>
<use-google-connector-j>true</use-google-connector-j>
<system-properties>
<property name="ae-cloudsql.cloudsql-database-url" value="jdbc:google:mysql://Instance:us-central1:DBInstance/dbName?user=root&password=xxxxxxx;" />
</system-properties>
</appengine-web-app>
<!-- [END config] -->
i have an application.property file
jdbc.driverClassName = com.mysql.jdbc.GoogleDriver
jdbc.url = jdbc:google:mysql://prjectInstance:us-central1:dbInstance/dbName
jdbc.username = root
jdbc.password = xxxxxxxx
hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
hibernate.hbm2ddl.auto= update
hibernate.show_sql = true
hibernate.format_sql = true
but when i upload it, it will throw an error
Caused by:
java.lang.IllegalStateException: Could not load JDBC driver class [com.mysql.jdbc.GoogleDriver]
at org.springframework.jdbc.datasource.DriverManagerDataSource.setDriverClassName(DriverManagerDataSource.java:130)
at com.appointment.schedular.configuration.HibernateConfiguration.dataSource(HibernateConfiguration.java:41)
at com.appointment.schedular.configuration.HibernateConfiguration$$EnhancerBySpringCGLIB$$8e307f3.CGLIB$dataSource$1(<gene
at com.appointment.schedular.configuration.HibernateConfiguration$$EnhancerBySpringCGLIB$$8e307f3$$FastClassBySpringCGLIB$
how can i solve this problem.