# Servlet Authentication with Java

**URL:** <https://devforum.okta.com/t/servlet-authentication-with-java/17098>\
**Category:** Developer Blog Comments\
**Created:** [July 22, 2019, 5:18pm UTC](https://devforum.okta.com/t/servlet-authentication-with-java/17098 "2019-07-22T17:18:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [July 22, 2019, 5:18pm UTC](https://devforum.okta.com/t/servlet-authentication-with-java/17098/1 "2019-07-22T17:18:26Z")

</div>

[Servlet Authentication with Java](https://developer.okta.com/blog/2019/07/22/servlet-authentication)

Learn how to use Okta’s Authentication API with Java Servlets.

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [June 21, 2021, 1:55am UTC](https://devforum.okta.com/t/servlet-authentication-with-java/17098/2 "2021-06-21T01:55:26Z")

</div>

**Adrian Campanaro**

Hi I got the following error when running mvn

11:28:57.877 [com.example.joy.servlet.login.Application.main()] ERROR c.o.s.i.h.a.DefaultRequestAuthenticatorFactory - There was an error instantiating com.okta.commons.http.authc.DisabledAuthenticator  
java.lang.IllegalStateException: java.lang.NoSuchMethodException: com.okta.commons.http.authc.DisabledAuthenticator.\<init\>(com.okta.sdk.authc.credentials.ClientCredentials)  
 at com.okta.commons.lang.Classes.getConstructor([Classes.java](http://Classes.java "Classes.java"):183)  
 at com.okta.sdk.impl.http.authc.DefaultRequestAuthenticatorFactory.create([DefaultRequestAuthenticator…](http://DefaultRequestAuthenticatorFactory.java "DefaultRequestAuthenticatorFactory.java"):56)

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [June 21, 2021, 2:24am UTC](https://devforum.okta.com/t/servlet-authentication-with-java/17098/3 "2021-06-21T02:24:15Z")

</div>

**Adrian Campanaro**

Hi…  
Here you state to download full application.  
In githib, it only has the starter application, not the final application with all the OKTA java code.

Regards  
Adrian

---

<div class="post-metadata">

**Author:** ![oktadev-blog](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/oktadev-blog/32/3422_2.png) [@oktadev-blog](https://devforum.okta.com/u/oktadev-blog)\
**Post date:** [June 21, 2021, 2:27am UTC](https://devforum.okta.com/t/servlet-authentication-with-java/17098/4 "2021-06-21T02:27:59Z")

</div>

**Adrian Campanaro**

Hi

Is this the correct version

\<okta.sdk.version\>1.5.2\</okta.sdk.version\>  
\<okta.auth.version\>1.0.0\</okta.auth.version\>

---

<div class="post-metadata">

**Author:** ![carson](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@carson](https://devforum.okta.com/u/carson)\
**Post date:** [February 10, 2023, 9:03am UTC](https://devforum.okta.com/t/servlet-authentication-with-java/17098/5 "2023-02-10T09:03:24Z")

</div>

Hi,  
Is there any reference for the Servlet Authentication with Java using SAML???
