Getting below exception while trying to start the spring boot application and initialize the bean in App.java.
okta.sdk.version → 10.3.0
Anyone faced this kind of issue? This is working fine in plain new spring boot app, but when i try to add this in existing spring boot facing this issue.
Spring Version : 1.2.5.RELEASE
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openapitools.client.ApiClient]: Factory method ‘oktaClient’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/web/util/DefaultUriBuilderFactory
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
… 17 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/web/util/DefaultUriBuilderFactory