java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;

Stack Overflow | user3428736 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Not able to Start SpringBoot app from Linux Machine

    Stack Overflow | 6 months ago | user3428736
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
  2. 0

    Can not run application with Tomcat using mvn spring-boot:run after upgrade from 1.2.1 to 1.25

    GitHub | 2 years ago | lidkowiak
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
  3. 0

    Swagger Dependencies break Spring Boot application

    Stack Overflow | 9 months ago | Maro
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    8 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;

      at org.apache.tomcat.websocket.server.WsServerContainer.<init>()
    2. Tomcat WS
      WsContextListener.contextInitialized
      1. org.apache.tomcat.websocket.server.WsServerContainer.<init>(WsServerContainer.java:149)
      2. org.apache.tomcat.websocket.server.WsSci.init(WsSci.java:131)
      3. org.apache.tomcat.websocket.server.WsContextListener.contextInitialized(WsContextListener.java:39)
      3 frames
    3. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
      5 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames