Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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



 
Rancher
Posts: 3493
39
  • 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)?
 
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!