This week's giveaway is in the Spring forum.
We're giving away four 3 month subscriptions to Marco Behler Videos and have Marco Behler on-line!
See this thread for details.
Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassNotFoundException: com.google.api.client.auth.oauth2.TokenResponseException  RSS feed

 
Phung Nguyen
Greenhorn
Posts: 1
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Google Drive API to upload file, I use a service account to authentication
It work when I test with Java Application but when I test in servlet it return error java.lang.ClassNotFoundException: com.google.api.client.auth.oauth2.TokenResponseException
How I can fix it? Please help me
This is my code:

my servlet:

I try google this error and try add some dependency but it's not successful
This is my list dependency in maven



 
Dave Tolls
Ranch Hand
Posts: 2734
30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the relevant jar files deployed to the server as part of the webapp (check the WEB-INF/libs directory)?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!