OKTA SDK 10.3.0 Upgrade with Spring boot App

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

Hello,

You might post an issue at Issues · okta/okta-sdk-java · GitHub

You can provide all the environmental differences between your existing Spring Boot Project that fails, and the new Spring Boot project where it is successful.

1.2.5 is about a 2 decades old.
The 10.3.0 SDK does have Spring dependencies which I assume are not compatible with an older Spring release.

Thanks you, we started upgrading to Spring 2.5.3 latest in order to use this OKTA SDK latest. Thanks for responding.