<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008S33DOSAZOkta Classic EngineSingle Sign-OnAnswered2024-04-15T12:38:59.000Z2018-10-09T15:46:49.000Z2018-10-10T20:44:07.000Z

go8jh (go8jh) asked a question.

Cant get the sample spring boot application to start(org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeResourceDetails')

I am trying to get the sample okta-spring-boot application working, but I am running into a runtime exception, and I can't find much in the way of details on it. I can build the application just fine, but when I try and run the app with the specified command line argument(mvn spring-boot:run -Dokta.oauth2.clientId=xxxxxxxxxxxxxx  -Dokta.oauth2.clientSecret=xxxxxxxxxxxxxxxxx -Dokta.oauth2.issuer=https://xxxxx.okta.com/oauth2/default) . Tomcat fails to start -- Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'oktaSsoFilter' defined in com.okta.spring.example.HostedLoginCodeFlowExampleApplication: Unsatisfied dependency expressed through method 'oktaSsoFilter' parameter 4; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeResourceDetails' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {} Any suggestions on how to go about trouble shooting this would be much appreciated.

 

I am running java 8 on a Mac book pro:

 

java version "1.8.0_45"

Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

 

I am using 0.6.1 of the okta libraries okta-spring-boot-parent, okta-spring-boot-starter etc. I haven't added any additional dependencies.

 

 

 


  • Hello this is Vasi from Okta Support

     

    For such references please feel free to open a ticket with our Developers team.   

     

    They will be able to guide and adjust this to your needs.

     

     

     

     

    Expand Post
This question is closed.
Loading
Cant get the sample spring boot application to start(org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeResourceDetails')