org.apache.catalina.LifecycleException

An invalid Lifecycle transition was > attempted ([before_destroy]) for component > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/analytics]] > in state [STARTING_PREP] >         at > > org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408) >         at > org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298) >         at > org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041) >         at > > org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977) >         at > > org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956) >         at > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797) >         at > > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746) >         at > > org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118) >         at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) >         at > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) >         at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173) >         at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >         at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) >         at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) >         at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618) >         at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963) >         at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600) >         at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) >         at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) >         at java.util.concurrent.FutureTask.run(FutureTask.java:138)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7279

  • An invalid Lifecycle transition was > attempted ([before_destroy]) for component > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/analytics]] > in state [STARTING_PREP] >         at
  • An invalid Lifecycle transition >> was >> attempted ([before_destroy]) for component >> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] in >> state [STARTING_PREP] >> at
  • An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] in state [STARTING_PREP] at org.apache.catalina.util.LifecycleBase.invalidTransition
  • Stack trace

    • org.apache.catalina.LifecycleException: An invalid Lifecycle transition was > attempted ([before_destroy]) for component > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/analytics]] > in state [STARTING_PREP] >         at > > org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408) >         at > org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298) >         at > org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041) >         at > > org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977) >         at > > org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956) >         at > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797) >         at > > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746) >         at > > org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118) >         at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) >         at > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) >         at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173) >         at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >         at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) >         at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) >         at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618) >         at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963) >         at > org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600) >         at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) >         at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) >         at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.lang.Thread.run(Thread.java:662)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.