Eclipse starts Tomcat error resolution

Source: Internet
Author: User
Tags apache tomcat



Clipse start Tomcat to report the following error message:






Console:


September 06, 2018 9:01:31 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
Warning: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclipse.jst.jee.server:servlet‘ did not find a matching property.
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Server version: Apache Tomcat/9.0.10
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Server built: Jun 20 2018 17:32:21 UTC
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Server number: 9.0.10.0
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: OS Name: Linux
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: OS Version: 4.15.0-33-generic
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Architecture: amd64
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: JVM Version: 1.8.0_181-8u181-b13-0ubuntu0.16.04.1-b13
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: JVM Vendor: Oracle Corporation
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: CATALINA_BASE: /home/dss/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: CATALINA_HOME: /usr/local/tomcat9
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Command line argument: -Dcatalina.base=/home/dss/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Command line argument: -Dcatalina.home=/usr/local/tomcat9
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Command line argument: -Dwtp.deploy=/home/dss/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Command line argument: -Djava.endorsed.dirs=/usr/local/tomcat9/endorsed
September 06, 2018 9:01:31 PM org.apache.catalina.startup.VersionLoggerListener log
Information: Command line argument: -Dfile.encoding=UTF-8
September 06, 2018 9:01:31 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
Information: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/ Jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
September 06, 2018 9:01:32 PM org.apache.coyote.AbstractProtocol init
Information: Initializing ProtocolHandler ["http-nio-8080"]
September 06, 2018 9:01:32 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
Information: Using a shared selector for servlet write/read
September 06, 2018 9:01:32 PM org.apache.coyote.AbstractProtocol init
Information: Initializing ProtocolHandler ["ajp-nio-8009"]
September 06, 2018 9:01:32 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
Information: Using a shared selector for servlet write/read
September 06, 2018 9:01:32 PM org.apache.catalina.startup.Catalina load
Information: Initialization processed in 736 ms
September 06, 2018 9:01:32 PM org.apache.catalina.core.StandardService startInternal
Information: Starting service [Catalina]
September 06, 2018 9:01:32 PM org.apache.catalina.core.StandardEngine startInternal
Information: Starting Servlet Engine: Apache Tomcat/9.0.10
September 06, 2018 9:01:34 PM org.apache.jasper.servlet.TldScanner scanJars
Information: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation Time.
September 06, 2018 9:01:36 PM org.apache.catalina.core.ContainerBase startInternal
Critical: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/servlet]]
    At java.util.concurrent.FutureTask.report(FutureTask.java:122)
    At java.util.concurrent.FutureTask.get(FutureTask.java:192)
    At org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:949)
    At org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    At org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
    At org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
    At java.util.concurrent.FutureTask.run(FutureTask.java:266)
    At org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    At java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
    At org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
    At org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    At org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    At org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    At org.apache.catalina.startup.Catalina.start(Catalina.java:682)
    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.catalina.startup.Bootstrap.start(Bootstrap.java:350)
    At org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/servlet]]
    At org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
    At org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
    At org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
    At java.util.concurrent.FutureTask.run(FutureTask.java:266)
    At org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    At java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
    At org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
    ... 21 more
Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name [http1]
    At org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3132)
    At org.apache.catalina.Context.addServletMappingDecoded(Context.java:879)
    At org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1376)
    At org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1187)
    At org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:765)
    At org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
    At org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
    At org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5007)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    ... 27 more

September 06, 2018 9:01:36 PM org.apache.catalina.core.ContainerBase startInternal
Critical: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start
    At java.util.concurrent.FutureTask.report(FutureTask.java:122)
    At java.util.concurrent.FutureTask.get(FutureTask.java:192)
    At org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:949)
    At org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    At org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    At org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    At org.apache.catalina.startup.Catalina.start(Catalina.java:682)
    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.catalina.startup.Bootstrap.start(Bootstrap.java:350)
    At org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    At org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:958)
    At org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
    At org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    At org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
    At org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
    At java.util.concurrent.FutureTask.run(FutureTask.java:266  





The reason for this is that there is a lack of jar packages or some jar package conflicts, or it may be that the Web. XML is not configured correctly.



There is no way, I re-created a project. The same operation turned out. Tomcat was successfully opened.



Again open the original wrong item, finally found the reason, all is careless caused by oneself.






It turns out that my web. XML has one more space in some servlet-name ... And then it's always the same error!






Eclipse starts Tomcat error resolution


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.