org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;

GitHub | SamTharani | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Spring boot 1.3.6.RELEASE failed to start

    GitHub | 6 months ago | SamTharani
    org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;

      at io.undertow.websockets.jsr.Bootstrap.handleDeployment()
    2. Undertow WebSockets JSR356 implementations
      Bootstrap.handleDeployment
      1. io.undertow.websockets.jsr.Bootstrap.handleDeployment(Bootstrap.java:93)[undertow-websockets-jsr-1.3.23.Final.jar:1.3.23.Final]
      1 frame
    3. Undertow Servlet
      DeploymentManagerImpl.deploy
      1. io.undertow.servlet.core.DeploymentManagerImpl.handleExtensions(DeploymentManagerImpl.java:252)[undertow-servlet-1.3.23.Final.jar:1.3.23.Final]
      2. io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:152)[undertow-servlet-1.3.23.Final.jar:1.3.23.Final]
      2 frames
    4. Spring Boot
      EmbeddedWebApplicationContext.onRefresh
      1. org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory.createDeploymentManager(UndertowEmbeddedServletContainerFactory.java:365)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
      2. org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory.getEmbeddedServletContainer(UndertowEmbeddedServletContainerFactory.java:220)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
      3. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:160)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
      4. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130)[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
      4 frames