Tomcat一次启动多个Web项目报错

Tomcat一次启动多个Web项目报错,导致项目没有完全启动
异常:
An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost

18-Oct-2019 14:49:52.875 严重 [RMI TCP Connection(6)-127.0.0.1] org.apache.catalina.core.ContainerBase.removeChild ContainerBase.removeChild: destroy: 
 org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/WebApp]] in state [STARTED]
    at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:402)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:856)
    at org.apache.catalina.startup.HostConfig.unmanageApp(HostConfig.java:1757)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287)
    at 

解决方法:
1.将Tomcat下的webapp下的之前部署的项目删掉
2.将IDEA对应项目下的out目录删除
3.重新rebuild项目,运行即可

你可能感兴趣的:(Tomcat一次启动多个Web项目报错)