java.lang.IllegalStateException: Servlets cannot be added to context as the context has been initialised

GitHub | philwebb | 8 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

    GitHub comment 6178#229451907

    GitHub | 8 months ago | philwebb
    java.lang.IllegalStateException: Servlets cannot be added to context as the context has been initialised

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Servlets cannot be added to context as the context has been initialised

      at org.apache.catalina.core.ApplicationContext.addServlet()
    2. Glassfish Core
      ApplicationContext.addServlet
      1. org.apache.catalina.core.ApplicationContext.addServlet(ApplicationContext.java:843)[tomcat-embed-core-8.5.3.jar:8.5.3]
      1 frame