i also tried 
>
> <dependency>
>   <groupId>com.google.cloud.sql</groupId>
>   <artifactId>mysql-socket-factory</artifactId>
>   <version>1.0.1</version>
> </dependency>
>
>
> and configured app.yaml
>
>
> runtime: java
> vm:      true
>
> handlers:
> - url: /.*
>   script: this field is required, but ignored
>   secure: always  # Require HTTPS
>
> # [START env_variables]
> env_variables:    # Logging options
>   JAVA_OPTS: >-
>     -D.level=INFO
>   SQL_URL: jdbc:mysql://google/db?cloudSqlInstance=projectInstanceId:us-
> central1:dbInstance&socketFactory=com.google.cloud.sql.mysql.SocketFactory
> &user=root&password=xxxxxxx
> # [END env_variables]
> # [END runtime]
>
> runtime_config:   # Optional
>   jdk: openjdk8
>   server: jetty9
>   
> beta_settings:
>       cloud_sql_instances: "projectInstanceId:us-central1:dbInstance"
>
> application.properties
jdbc.driverClassName = com.mysql.jdbc.Driver
jdbc.url = jdbc:mysql:
//google/db?cloudSqlInstance=projectInstance:us-central1:dbInstance&socketFactory=com.google.cloud.sql.mysql.SocketFactory
jdbc.username = root
jdbc.password = xxxxxxxx
hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
hibernate.hbm2ddl.auto = update
hibernate.show_sql = true
hibernate.format_sql = true 




 

> it again not connecting with db and through
>
Caused by:
java.lang.NoClassDefFoundError: com/mysql/jdbc/SocketFactory
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:763)



      
>
>   
>
>
>
>

-- 
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/b176d348-38d4-4e37-af4e-d3882ba9ea33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to