I am trying to configure my GAE Eclipse project with Cloud SQL and JPA. I followed these documents:
https://developers.google.com/eclipse/docs/cloudsql-jpatools https://cloud.google.com/appengine/docs/java/cloud-sql/ https://github.com/GoogleCloudPlatform/appengine-cloudsql-native-mysql-eclipselink-jpa-demo-java/blob/master/src/main/resources/META-INF/persistence.xml However I continue to get this error: Exception [EclipseLink-4021] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException > Exception Description: Unable to acquire a connection from driver [null], > user [null] and URL [null]. Verify that you have set the expected driver > class and URL. Check your login, persistence.xml or sessions.xml resource. > The jdbc.driver property should be set to a class that is compatible with > your database platform > > Any insight on this problem would be great as I would like to get back to developing my app. Below is the relevant code: *persistence.xml* > <?xml version="1.0" encoding="UTF-8" ?><persistence > xmlns="http://java.sun.com/xml/ns/persistence" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence > http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> > <persistence-unit name="test_pu"> > <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> > <properties> > <property name="javax.persistence.jdbc.user" value="root" /> > <property name="eclipselink.ddl-generation" value="create-tables" /> > </properties></persistence-unit> > > *appengine-web.xml* *<?xml version="1.0" encoding="utf-8"?> <appengine-web-app > xmlns="http://appengine.google.com/ns/1.0"> > <application>redacted</application> <version>1</version> > <threadsafe>true</threadsafe> > <use-google-connector-j>true</use-google-connector-j> <static-files> > <include path="**" /> <include path="**.nocache.*" expiration="0s" /> > <include path="**.cache.*" expiration="365d" /> <exclude path="**.gwt.rpc" > /> </static-files> <system-properties> <property > name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> > <property name="cloudsql.url.dev" > value="jdbc:mysql://127.0.0.1:3306/TestDB?user=root"/> <property > name="cloudsql.url" > value="jdbc:google:mysql://redacted:main/TestDB?user=root"/> > </system-properties> </appengine-web-app>* *project structure* <http://i.stack.imgur.com/BSIIp.png> <https://lh6.googleusercontent.com/-qAaKLQ1uC1I/VDBAVkAL8cI/AAAAAAAAANY/VgWP00lIVXQ/s1600/jpa%2Bproperties.png> <http://i.stack.imgur.com/BSIIp.png> -- 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 http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
