Spring Boot + spring-security-oauth2-resource-server should not throw a ClassNotFoundException once it supports more than one token format
See original GitHub issueWhile it’s true that Resource Server effectively requires spring-security-oauth2-jose
at this point, it shouldn’t once it supports more than one token format.
When spring-boot-starter-security
and spring-security-oauth2-resource-server
are used together, without further configuration, the application throws the following exception:
Caused by: java.lang.ClassNotFoundException: org.springframework.security.oauth2.jwt.JwtDecoder
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 111 more
In all likelihood, this will be taken care of naturally when coordinating with the boot team to add support for a second token format.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
BearerTokenAccessDeniedHand...
The exception disappeared when I added spring-boot-starter-oauth2-resource-server dependency.
Read more >spring-projects/spring-security - Gitter
Hello, I've got a question on how to handle pagination requests filtered by security layer. For example, I have some entities that are...
Read more >Spring Boot Reference Documentation
Try the How-to documents. They provide solutions to the most common questions. Learn the Spring basics. Spring Boot builds on many other Spring...
Read more >How to resolve java.lang.ClassNotFoundException in Java ...
When you are in a multi-classloader environment (In a EE environment, for example, but not limited to), each classloader may have its own...
Read more >java.lang.ClassNotFoundException - DigitalOcean
Java compiler has no way to know if the class will be present in the classpath at runtime or not. One of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is just to ensure we validate that. Agreed that it should naturally sort itself out.
Confirmed by creating a project using the describing configuration and observing that it ran without error.