Exception when trying to create client

received the below error when trying to build client using OKTA java sdk.
“Unable to find a ‘com.okta.commons.http.RequestExecutorFactory’ implementation on the classpath. Please ensure you have added the okta-sdk-httpclient.jar file to your runtime classpath.”

using the below mvn dependencies:
± com.okta.authn.sdk:okta-authn-sdk-api:jar:2.0.11:compile
[INFO] | - org.jetbrains:annotations:jar:24.0.1:compile
[INFO] ± com.okta.authn.sdk:okta-authn-sdk-impl:jar:2.0.11:compile
[INFO] ± com.okta.sdk:okta-sdk-api:jar:8.2.5:compile
[INFO] | ± com.okta.commons:okta-config-check:jar:1.3.3:compile
[INFO] | ± com.okta.commons:okta-http-api:jar:1.3.3:compile
[INFO] | - com.okta.commons:okta-commons-lang:jar:1.3.3:compile
[INFO] ± com.okta.sdk:okta-sdk-impl:jar:8.2.5:runtime
[INFO] | ± org.yaml:snakeyaml:jar:1.30:runtime
[INFO] | ± org.bouncycastle:bcprov-jdk18on:jar:1.75:runtime
[INFO] | ± org.bouncycastle:bcpkix-jdk18on:jar:1.75:runtime
[INFO] | | - org.bouncycastle:bcutil-jdk18on:jar:1.75:runtime
[INFO] | ± io.jsonwebtoken:jjwt-api:jar:0.11.5:runtime
[INFO] | ± io.jsonwebtoken:jjwt-impl:jar:0.11.5:runtime
[INFO] | - io.jsonwebtoken:jjwt-jackson:jar:0.11.5:runtime
[INFO] - com.okta.commons:okta-http-httpclient:jar:1.3.5:compile
[INFO] - org.apache.httpcomponents.client5:httpclient5:jar:5.2.1:compile
[INFO] ± org.apache.httpcomponents.core5:httpcore5:jar:5.2:compile
[INFO] - org.apache.httpcomponents.core5:httpcore5-h2:jar:5.2:compile

Hi,

Which version of the Java SDK are you using? I will suggest you to try the latest version of the sample and see if you can reproduce this behaviour there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.