-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
According with instructions from resource-server README, this command should start the server:
mvn spring-boot:run '-Dokta.oauth2.issuer=https://${domain}/oauth2/default'
Running this against the master branch, with Eclipse Temurin 11.0.16, I get this result:
2026-01-15T14:44:17.704-03:00 INFO 16540 --- [ restartedMain] c.o.s.e.ResourceServerExampleApplication : Starting ResourceServerExampleApplication using Java 17.0.16 with PID 16540 (C:\purple\samples-java-spring\resource-server\target\classes started by pedro in C:\purple\samples-java-spring\resource-server)
2026-01-15T14:44:17.705-03:00 INFO 16540 --- [ restartedMain] c.o.s.e.ResourceServerExampleApplication : No active profile set, falling back to 1 default profile: "default"
2026-01-15T14:44:17.736-03:00 WARN 16540 --- [ restartedMain] ironmentPostProcessorApplicationListener : Your Okta Issuer URL is missing. You can copy your domain from the Okta Developer Console. Follow these instructions to find it: https://bit.ly/finding-okta-domain
To fix this add the `okta.oauth2.issuer` property to your application environments.
2026-01-15T14:44:17.736-03:00 INFO 16540 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2026-01-15T14:44:17.736-03:00 INFO 16540 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2026-01-15T14:44:18.521-03:00 INFO 16540 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8000 (http)
2026-01-15T14:44:18.529-03:00 INFO 16540 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2026-01-15T14:44:18.529-03:00 INFO 16540 --- [ restartedMain] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/11.0.11]
2026-01-15T14:44:18.561-03:00 INFO 16540 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2026-01-15T14:44:18.562-03:00 INFO 16540 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 824 ms
2026-01-15T14:44:18.794-03:00 WARN 16540 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterChain' defined in class path resource [com/okta/spring/example/ResourceServerExampleApplication$OktaOAuth2WebSecurityConfigurerAdapter.class]: Failed to instantiate [org.springframework.security.web.SecurityFilterChain]: Factory method 'filterChain' threw exception with message: No qualifying bean of type 'org.springframework.security.oauth2.jwt.JwtDecoder' available
2026-01-15T14:44:18.795-03:00 INFO 16540 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2026-01-15T14:44:18.798-03:00 WARN 16540 --- [ restartedMain] o.a.c.loader.WebappClassLoaderBase : You need to add "--add-opens=java.base/java.lang=ALL-UNNAMED" to the JVM command line arguments to enable ThreadLocal memory leak detection. Alternatively, you can suppress this warning by disabling ThreadLocal memory leak detection.
2026-01-15T14:44:18.799-03:00 WARN 16540 --- [ restartedMain] o.a.c.loader.WebappClassLoaderBase : You need to add "--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" to the JVM command line arguments to enable RMI Target memory leak detection. Alternatively, you can suppress this warning by disabling RMI Target memory leak detection.
2026-01-15T14:44:18.808-03:00 INFO 16540 --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2026-01-15T14:44:18.819-03:00 ERROR 16540 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Method filterChain in com.okta.spring.example.ResourceServerExampleApplication$OktaOAuth2WebSecurityConfigurerAdapter required a bean of type 'org.springframework.security.oauth2.jwt.JwtDecoder' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.security.oauth2.jwt.JwtDecoder' in your configuration.
Metadata
Metadata
Assignees
Labels
No labels