**APPLICATION FAILED TO START


  • Description:
  1. An attempt was made to call a method that does not exist. The attempt was made from the following location:
    org.springframework.security.web.server.util.matcher.PathPatternParserServerWebExchangeMatcher.parse(PathPatternParserServerWebExchangeMatcher.java:71)

The following method did not exist:

 'java.lang.String org.springframework.web.util.pattern.PathPatternParser.initFullPathPattern(java.lang.String)'

The calling method’s class, org.springframework.security.web.server.util.matcher.PathPatternParserServerWebExchangeMatcher, was loaded from the following location:

jar:file:/C:/Users/myProject.jar!/BOOT-INF/lib/spring-security-web-6.0.8.jar!/org/springframework/security/web/server/util/matcher/PathPatternParserServerWebExchangeMatcher.class

The called method’s class, org.springframework.web.util.pattern.PathPatternParser, is available from the following locations:

jar:file:/C:/Users/myProject.jar!/BOOT-INF/lib/spring-web-6.0.8.jar!/org/springframework/web/util/pattern/PathPatternParser.class

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

org.springframework.web.util.pattern.PathPatternParser: jar:file:/C:/Users/myProject.jar!/BOOT-INF/lib/spring-web-6.0.8.jar!/

  • Action:
    Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.security.web.server.util.matcher.PathPatternParserServerWebExchangeMatcher and org.springframework.web.util.pattern.PathPatternParser

  • I’m working on Java 17 where my pom file looks like:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>3.0.6</version>
    <relativePath/>
    <!-- lookup parent from repository -->
  </parent>
   <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web-services</artifactId>
        <version>3.0.6</version>
        <scope>compile</scope>
      </dependency>
 <dependency>
          <groupId>org.springframework</groupId>`your text`
          <artifactId>spring-context</artifactId>
          <version>6.0.8</version>
        </dependency>

New contributor

Twinkle vashishtha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.