i am developing an project based on spring and hibernate and want to deploy it on GCE.
so i added mysql connector <dependency> <!-- http://dev.mysql.com/doc/connector-j/en/ --> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>6.0.5</version> </dependency> then i added appengine-web.xml and enable use-google-connector-j <?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. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d94da49e-da22-45c1-a40b-7c234bd6d5d0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
