Happy Coding

Issue with oauth 2 example on blog


First of all I like your blog posts and I find them quite helpful. I was attemping to test out this example. Which is the one you did on Google OAuth on java. I get this issue when I run the code using the instructions in the readme file. I would greatly appriciate it if someone was able to help me out with this. The screenshot below is what I get when I run mvn exec:java after doing mvn package

Hmm I’m not sure, the code works okay for me.

Working backwards, the next thing I’d do if I were you is figure out why webAppDir is null.

Maybe try updating Java? I’m using Open JDK 11.0.8.

1 Like