Tomcat: LifecycleException when deploying

后端 未结 15 817
我在风中等你
我在风中等你 2020-11-30 09:35

I just downloaded the Tomcat 7.0.23 package on my Ubuntu 11.10.

I followed the instructions on a Google API website to deploy their example webapp. It basically con

相关标签:
15条回答
  • 2020-11-30 10:12

    In eclipse ... go to Servers view ... right click on the tomcat server -> Add or remove programs -> Remove all other projects. Now try to run the project. It should work.

    0 讨论(0)
  • 2020-11-30 10:13

    I got this error when there was no enough space in server. check logs and server spaces

    0 讨论(0)
  • 2020-11-30 10:16


    Tomcat has different WAR deployment ways. Some work, some don't. Please try the following deployment methods :

    • Automatic: Copy-paste your WAR file into ${CATALINA_HOME}/webapps. A folder with the same name will appear if everything goes right.
    • Manager Application: Upload the WAR file
    • Manager Application: Locate the WAR file

    In my case, using the Manager Application (local URL: http://localhost:8080/manager) worked. Whereas deploying using a copy-paste resulted in your error.

    0 讨论(0)
  • 2020-11-30 10:17

    Check your WEB-INF/web.xml file for the servlet Mapping.

    0 讨论(0)
  • 2020-11-30 10:18

    I am getting this error while deploying

    [main] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [/opt/tomcat/apache-tomcat-9.0.30/webapps/iclock]
        java.lang.IllegalStateException: Error starting child
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
                at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133)
                at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1867)
                at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
                at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    
    0 讨论(0)
  • 2020-11-30 10:19

    This means something is wrong with your application configuration or startup.

    There is always information about that in the logs - check logs/catalina.out and figure out what is wrong.

    0 讨论(0)
提交回复
热议问题