JwtToken runtime issue in AEM java code | Community
Skip to main content
New Participant
May 26, 2022
Solved

JwtToken runtime issue in AEM java code

  • May 26, 2022
  • 1 reply
  • 3445 views

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

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anudeep_Garnepudi

@br_271 

 

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

1 reply

Anudeep_Garnepudi
Anudeep_GarnepudiAccepted solution
New Participant
March 20, 2023

@br_271 

 

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