Expand my Community achievements bar.

SOLVED

JwtToken runtime issue in AEM java code

Avatar

Level 1

I am facing the below runtime error:

Method threw 'io.jsonwebtoken.lang.UnknownClassException' exception.

 

io.jsonwebtoken.lang.UnknownClassException: Unable to load class named [io.jsonwebtoken.impl.DefaultJwtParserBuilder] from the thread context, current, or system/application ClassLoaders. All heuristics have been exhausted. Class could not be found. Have you remembered to include the jjwt-impl.jar in your runtime classpath?

 

I have included all the jwttoken dependencies in pom.xml i:e jjwt-api, jjwt-impl and jjwt-jackson with version 0.11.0. And installed all the downloaded jars in system console. All the bundles are active as well.

So can anyone provide their inputs on how to resolve this issue

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@br_271 

 

Embed jars "jjwt-impl" and "jjwt-jackson" as dependencies. This will fix the error.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@br_271 

 

Embed jars "jjwt-impl" and "jjwt-jackson" as dependencies. This will fix the error.