Recebo o erro "Server Tomcat v9.0 Server at localhost failed to start." do Eclipse ao iniciar o servidor com o projeto adicionado nos resources. Sem adicionar o projeto, funciona normalmente. Fui verificar a instalação do Tomcat, iniciando manualmente pela linha de comando (Catalina), e recebo o seguinte:
Microsoft Windows [versão 6.1.7600] Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados.
C:\Users\fw>cd C:\Java Development\apache-tomcat-9.0.0.M13\bin
C:\Java Development\apache-tomcat-9.0.0.M13\bin>catalina Using CATALINA_BASE: "C:\Java Development\apache-tomcat-9.0.0.M13" Using CATALINA_HOME: "C:\Java Development\apache-tomcat-9.0.0.M13" Using CATALINA_TMPDIR: "C:\Java Development\apache-tomcat-9.0.0.M13\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_102" Using CLASSPATH: "C:\Java Development\apache-tomcat-9.0.0.M13\bin\bootstra p.jar;C:\Java Development\apache-tomcat-9.0.0.M13\bin\tomcat-juli.jar" Usage: catalina ( commands ... ) commands: debug Start Catalina in a debugger debug -security Debug Catalina with a security manager jpda start Start Catalina under JPDA debugger run Start Catalina in the current window run -security Start in the current window with security manager start Start Catalina in a separate window start -security Start in a separate window with security manager stop Stop Catalina configtest Run a basic syntax check on server.xml version What version of tomcat are you running?
C:\Java Development\apache-tomcat-9.0.0.M13\bin>catalina start Using CATALINA_BASE: "C:\Java Development\apache-tomcat-9.0.0.M13" Using CATALINA_HOME: "C:\Java Development\apache-tomcat-9.0.0.M13" Using CATALINA_TMPDIR: "C:\Java Development\apache-tomcat-9.0.0.M13\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_102" Using CLASSPATH: "C:\Java Development\apache-tomcat-9.0.0.M13\bin\bootstra p.jar;C:\Java Development\apache-tomcat-9.0.0.M13\bin\tomcat-juli.jar"
C:\Java Development\apache-tomcat-9.0.0.M13\bin>catalina start -security Using CATALINA_BASE: "C:\Java Development\apache-tomcat-9.0.0.M13" Using CATALINA_HOME: "C:\Java Development\apache-tomcat-9.0.0.M13" Using CATALINA_TMPDIR: "C:\Java Development\apache-tomcat-9.0.0.M13\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_102" Using CLASSPATH: "C:\Java Development\apache-tomcat-9.0.0.M13\bin\bootstra p.jar;C:\Java Development\apache-tomcat-9.0.0.M13\bin\tomcat-juli.jar" Using Security Manager
C:\Java Development\apache-tomcat-9.0.0.M13\bin>catalina run -security Using CATALINA_BASE: "C:\Java Development\apache-tomcat-9.0.0.M13" Using CATALINA_HOME: "C:\Java Development\apache-tomcat-9.0.0.M13" Using CATALINA_TMPDIR: "C:\Java Development\apache-tomcat-9.0.0.M13\temp" Using JRE_HOME: "C:\Program Files\Java\jdk1.8.0_102" Using CLASSPATH: "C:\Java Development\apache-tomcat-9.0.0.M13\bin\bootstra p.jar;C:\Java Development\apache-tomcat-9.0.0.M13\bin\tomcat-juli.jar" Using Security Manager 24-Feb-2017 14:31:21.847 WARNING [main] org.apache.tomcat.util.digester.SetPrope rtiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jsf-livraria' did not find a ma tching property. 24-Feb-2017 14:31:21.917 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Server version: Apache Tomcat/9.0.0.M13 24-Feb-2017 14:31:21.919 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Server built: Nov 3 2016 20:59:41 UTC 24-Feb-2017 14:31:21.920 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Server number: 9.0.0.0 24-Feb-2017 14:31:21.921 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log OS Name: Windows 7 24-Feb-2017 14:31:21.922 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log OS Version: 6.1 24-Feb-2017 14:31:21.922 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Architecture: amd64 24-Feb-2017 14:31:21.924 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Java Home: C:\Program Files\Java\jdk1.8.0_102\jre 24-Feb-2017 14:31:21.925 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log JVM Version: 1.8.0_102-b14 24-Feb-2017 14:31:21.926 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log JVM Vendor: Oracle Corporation 24-Feb-2017 14:31:21.927 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log CATALINA_BASE: C:\Java Development\apache-tomcat-9.0.0.M13 24-Feb-2017 14:31:21.929 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log CATALINA_HOME: C:\Java Development\apache-tomcat-9.0.0.M13 24-Feb-2017 14:31:21.930 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 24-Feb-2017 14:31:21.931 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catali na.webresources 24-Feb-2017 14:31:21.932 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Djava.util.logging.config.file=C:\Java Develo pment\apache-tomcat-9.0.0.M13\conf\logging.properties 24-Feb-2017 14:31:21.933 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.Cl assLoaderLogManager 24-Feb-2017 14:31:21.934 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Djava.security.manager 24-Feb-2017 14:31:21.935 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Djava.security.policy==C:\Java Development\ap ache-tomcat-9.0.0.M13\conf\catalina.policy 24-Feb-2017 14:31:21.937 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Dcatalina.base=C:\Java Development\apache-tom cat-9.0.0.M13 24-Feb-2017 14:31:21.938 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Dcatalina.home=C:\Java Development\apache-tom cat-9.0.0.M13 24-Feb-2017 14:31:21.940 INFO [main] org.apache.catalina.startup.VersionLoggerLi stener.log Command line argument: -Djava.io.tmpdir=C:\Java Development\apache-to mcat-9.0.0.M13\temp 24-Feb-2017 14:31:21.941 INFO [main] org.apache.catalina.core.AprLifecycleListen er.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.10 using APR version 1.5.2. 24-Feb-2017 14:31:21.942 INFO [main] org.apache.catalina.core.AprLifecycleListen er.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 24-Feb-2017 14:31:21.943 INFO [main] org.apache.catalina.core.AprLifecycleListen er.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 24-Feb-2017 14:31:23.020 INFO [main] org.apache.catalina.core.AprLifecycleListen er.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2j 26 Sep 2016) 24-Feb-2017 14:31:23.682 INFO [main] org.apache.coyote.AbstractProtocol.init Ini tializing ProtocolHandler ["http-nio-8080"] 24-Feb-2017 14:31:23.964 INFO [main] org.apache.tomcat.util.net.NioSelectorPool. getSharedSelector Using a shared selector for servlet write/read 24-Feb-2017 14:31:23.981 INFO [main] org.apache.coyote.AbstractProtocol.init Ini tializing ProtocolHandler ["ajp-nio-8009"] 24-Feb-2017 14:31:23.993 INFO [main] org.apache.tomcat.util.net.NioSelectorPool. getSharedSelector Using a shared selector for servlet write/read 24-Feb-2017 14:31:23.995 INFO [main] org.apache.catalina.startup.Catalina.load I nitialization processed in 4480 ms 24-Feb-2017 14:31:24.317 INFO [main] org.apache.catalina.core.StandardService.st artInternal Starting service Catalina 24-Feb-2017 14:31:24.319 INFO [main] org.apache.catalina.core.StandardEngine.sta rtInternal Starting Servlet Engine: Apache Tomcat/9.0.0.M13 24-Feb-2017 14:31:24.845 WARNING [localhost-startStop-1] org.apache.juli.ClassLo aderLogManager.readConfiguration Reading C:\Java Development\apache-tomcat-9.0.0 .M13\wtpwebapps\jsf-livraria\WEB-INF\classes\logging.properties is not permitted . See "per context logging" in the default catalina.policy file. 24-Feb-2017 14:31:28.342 SEVERE [Catalina-startStop-1] org.apache.catalina.core. ContainerBase.startInternal A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException : Failed to start component [StandardEngine[Catalina].StandardHost[localhost].St andardContext[/jsf-livraria]] 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.ja va:939) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java :890) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. java:1404) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. java:1394) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.catalina.LifecycleException: Failed to start component [St andardEngine[Catalina].StandardHost[localhost].StandardContext[/jsf-livraria]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(Lifecy cleBase.java:441) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) ... 6 more Caused by: java.lang.IllegalArgumentException: Invalid /faces/*.xh tml in servlet mapping at org.apache.catalina.core.StandardContext.addServletMappingDecoded(Sta ndardContext.java:3130) at org.apache.catalina.Context.addServletMappingDecoded(Context.java:879 ) at org.apache.catalina.startup.ContextConfig.configureContext(ContextCon fig.java:1376) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.jav a:1190) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfi g.java:775) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:299) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa se.java:123) at org.apache.catalina.core.StandardContext.startInternal(StandardContex t.java:5077) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ... 6 more
24-Feb-2017 14:31:28.349 SEVERE [main] org.apache.catalina.core.ContainerBase.st artInternal 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.ja va:939) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine. java:262) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.startInternal(StandardServic e.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer. java:793) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Catalina.start(Catalina.java:655) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495) Caused by: org.apache.catalina.LifecycleException: A child container failed duri ng start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja va:948) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java :890) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. java:1404) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase. java:1394) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:617) at java.lang.Thread.run(Thread.java:745)
24-Feb-2017 14:31:28.354 SEVERE [main] org.apache.catalina.startup.Catalina.star t The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.ja va:948) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine. java:262) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.startInternal(StandardServic e.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer. java:793) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Catalina.start(Catalina.java:655) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
24-Feb-2017 14:31:28.357 INFO [main] org.apache.coyote.AbstractProtocol.pause Pa using ProtocolHandler ["http-nio-8080"] 24-Feb-2017 14:31:28.358 INFO [main] org.apache.coyote.AbstractProtocol.pause Pa using ProtocolHandler ["ajp-nio-8009"] 24-Feb-2017 14:31:28.359 INFO [main] org.apache.catalina.core.StandardService.st opInternal Stopping service Catalina 24-Feb-2017 14:31:28.368 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"] 24-Feb-2017 14:31:28.374 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
C:\Java Development\apache-tomcat-9.0.0.M13\bin>