Maybe a dependencies problem using Java - Okta - Maven?

I used the following dependencies on my Maven Project:

Preformatted text

com.okta.authn.sdk
okta-authn-sdk-api
1.0.0


com.okta.authn.sdk
okta-authn-sdk-impl
1.0.0
runtime


com.okta.sdk
okta-sdk-httpclient
1.5.2
runtime

And error does not shown when debugging on Eclipse but it does once is running on WebSphere:

Unable to find a ‘com.okta.sdk.impl.http.RequestExecutorFactory’ implementation on the classpath. Please ensure you have added the okta-sdk-httpclient.jar file to your runtime classpath

The error is exact the same as this topic: https://github.com/okta/okta-auth-java/issues/49, but he was using Gradle. Maybe there are also dependencies issues with Maven? I used the latest versions as per https://search.maven.org/ and dependecies from https://github.com/okta/okta-auth-java

I already have imported okta-sdk-httpclient and okta-sdk-impl (this one has the class) .jars on WebSphere Classpath

1 Like

Currently having the same issue. Any chance you solved it?

Update - Found a fix: IllegalStateException when running with Java SDK outside of IDE