Sunday, June 16, 2013

Re: Access Google Cloud SQL From Java Servlet

Make sure it is the same Linux user. The oauth credentials are stored in the user's home directory.

On Jun 14, 2013 11:49 PM, "prasenjit dhar" <prasenjitdhar3@gmail.com> wrote:
Can you please explain?
Are you asking about the G mail account?




On Sat, Jun 15, 2013 at 12:00 AM, Ken Ashcraft <kash@google.com> wrote:
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 a topic in the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-cloud-sql-discuss/5ZcAm5cL1MQ/unsubscribe.
To unsubscribe from this group and all its topics, 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.
 
 

--
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