Friday, June 14, 2013

Re: Access Google Cloud SQL From Java Servlet

Is the servlet running as the same user as when you ran the command line tool?


On Fri, Jun 14, 2013 at 3:22 AM, prasenjit dhar <prasenjitdhar3@gmail.com> wrote:
Hi,

I can access google cloud sql instance using java application but when i try to access the instance from Java servlet in tomcat it gives the error
"java.sql.SQLException: Unable to load OAuth2 refresh or access token. Please run the google_sql command line tool once to setup cached credentials. See: http://code.google.com/apis/sql/docs/commandline.html".I have run google_sql command line tool once but still it is giving the same error.Please help.

Thanks.
Prasenjit

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment