# Spring-boot-3-0-0-m3-with-keycloak having classpath issue -Application not working

**URL:** <https://forum.keycloak.org/t/spring-boot-3-0-0-m3-with-keycloak-having-classpath-issue-application-not-working/15949>\
**Category:** Getting advice\
**Tags:** adapter-java\
**Created:** [June 13, 2022, 5:03am UTC](https://forum.keycloak.org/t/spring-boot-3-0-0-m3-with-keycloak-having-classpath-issue-application-not-working/15949 "2022-06-13T05:03:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepbajaj05](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/deepbajaj05/32/5985_2.png) [@deepbajaj05](https://forum.keycloak.org/u/deepbajaj05)\
**Post date:** [June 13, 2022, 5:03am UTC](https://forum.keycloak.org/t/spring-boot-3-0-0-m3-with-keycloak-having-classpath-issue-application-not-working/15949/1 "2022-06-13T05:03:56Z")

</div>

stacktrace:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

```
org.keycloak.adapters.springsecurity.config.KeycloakWebSecurityConfigurerAdapter.configure(KeycloakWebSecurityConfigurerAdapter.java:120)

```

The following method did not exist:

```
'org.springframework.security.config.annotation.web.builders.HttpSecurity org.springframework.security.config.annotation.web.builders.HttpSecurity.addFilterBefore(javax.servlet.Filter, java.lang.Class)'

```

The calling method’s class, org.keycloak.adapters.springsecurity.config.KeycloakWebSecurityConfigurerAdapter, was loaded from the following location:

```
jar:file:/Users/.gradle/caches/modules-2/files-2.1/org.keycloak/keycloak-spring-security-adapter/18.0.0/fe80eaa63ae405d679801af1f3fff0511c63c647/keycloak-spring-security-adapter-18.0.0.jar!/org/keycloak/adapters/springsecurity/config/KeycloakWebSecurityConfigurerAdapter.class

```

The called method’s class, org.springframework.security.config.annotation.web.builders.HttpSecurity, is available from the following locations:

```
jar:file:/Users/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/6.0.0-M5/bdec32536ada10f133047c2a83e947963833ba0c/spring-security-config-6.0.0-M5.jar!/org/springframework/security/config/annotation/web/builders/HttpSecurity.class

```

The called method’s class hierarchy was loaded from the following locations:

```
org.springframework.security.config.annotation.web.builders.HttpSecurity: file:/Users/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/6.0.0-M5/bdec32536ada10f133047c2a83e947963833ba0c/spring-security-config-6.0.0-M5.jar
org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder: file:/Users/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/6.0.0-M5/bdec32536ada10f133047c2a83e947963833ba0c/spring-security-config-6.0.0-M5.jar
org.springframework.security.config.annotation.AbstractSecurityBuilder: file:/Users/.gradle/caches/modules-2/files-2.1/org.springframework.security/spring-security-config/6.0.0-M5/bdec32536ada10f133047c2a83e947963833ba0c/spring-security-config-6.0.0-M5.jar

```

Action:

Correct the classpath of your application so that it contains compatible versions of the classes org.keycloak.adapters.springsecurity.config.KeycloakWebSecurityConfigurerAdapter and org.springframework.security.config.annotation.web.builders.HttpSecurity
