java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassCastException: toto.STS2_Nb7Ide cannot be cast to javax.servlet.Servlet

Oracle Community | jamesdoo | 6 years ago
  1. 0

    Unable to deploy simple STS under GF 3.1.x (but STS deploy OK under GF 3.0.1)

    Oracle Community | 6 years ago | jamesdoo
    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassCastException: toto.STS2_Nb7Ide cannot be cast to javax.servlet.Servlet
  2. 0

    database to xml

    Coderanch | 6 years ago | neri jimenez
    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: Servlet web service endpoint '' failure
  3. 0

    glassfish gives an illegalstateexception - trying to deploy java ee timer application

    Stack Overflow | 4 years ago | U-L
    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class org.jboss.weld.servlet.WeldListener
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't deploy an application twice using Glassfish Embedded v3.1

    Stack Overflow | 6 years ago | Thiago Negri
    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class com.senior.seguranca.csmcenter.CsmCenterContextListener
  6. 0

    org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started in maven glassfish plugin (3.1)

    Stack Overflow | 4 years ago | kamlesh0606
    java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.NoSuchMethodError: org. slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.Exception

    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassCastException: toto.STS2_Nb7Ide cannot be cast to javax.servlet.Servlet

    at com.sun.enterprise.web.WebApplication.start()
  2. Glassfish
    WebApplication.start
    1. com.sun.enterprise.web.WebApplication.start(WebApplication.java:130)
    1 frame
  3. Private APIs of Glassfish
    ApplicationInfo.start
    1. org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    2. org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    3. org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
    3 frames
  4. Kernel Classes
    ApplicationLifecycle.deploy
    1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    2 frames
  5. Embedded GlassFish Web
    DeployCommand.execute
    1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
    1 frame
  6. Kernel Classes
    CommandRunnerImpl$1.execute
    1. com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
    1 frame