*關於Tomcat啟動報錯問題**
關於Tomcat啟動報錯問題 2018年09月23日 11:40:54 揚帆天涯 閱讀數:1 標籤: 1 2 3 4 編輯 Tomcat啟動報錯原因 1 九月 23, 2018 11:32:35 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:javaweba1’ did not find a matching property. 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Server version: Apache Tomcat/8.5.32 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Server built: Jun 20 2018 19:50:35 UTC 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Server number: 8.5.32.0 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: OS Name: Windows 7 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: OS Version: 6.1 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Architecture: amd64 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Java Home: C:\Program Files\Java\jre1.8.0_144 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: JVM Version: 1.8.0_144-b01 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: JVM Vendor: Oracle Corporation 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: CATALINA_BASE: D:\eclipseCode.metadata.plugins\org.eclipse.wst.server.core\tmp1 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: CATALINA_HOME: E:\Tomcat\apache-tomcat-8.5.32 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Command line argument: -Dcatalina.base=D:\eclipseCode.metadata.plugins\org.eclipse.wst.server.core\tmp1 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Command line argument: -Dcatalina.home=E:\Tomcat\apache-tomcat-8.5.32 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Command line argument: -Dwtp.deploy=D:\eclipseCode.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Command line argument: -Djava.endorsed.dirs=E:\Tomcat\apache-tomcat-8.5.32\endorsed 九月 23, 2018 11:32:35 上午 org.apache.catalina.startup.VersionLoggerListener log 資訊: Command line argument: -Dfile.encoding=GBK 九月 23, 2018 11:32:35 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 資訊: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jre1.8.0_144\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_144/bin/server;C:/Program Files/Java/jre1.8.0_144/bin;C:/Program Files/Java/jre1.8.0_144/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Java\jdk1.8.0_144\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;E:\Tomcat\apache-tomcat-8.5.32;C:\Users\Administrator\Desktop;;.] 九月 23, 2018 11:32:35 上午 org.apache.coyote.AbstractProtocol init 資訊: Initializing ProtocolHandler [“http-nio-8282”] 九月 23, 2018 11:32:36 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector 資訊: Using a shared selector for servlet write/read 九月 23, 2018 11:32:36 上午 org.apache.coyote.AbstractProtocol init 資訊: Initializing ProtocolHandler [“ajp-nio-8383”] 九月 23, 2018 11:32:36 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector 資訊: Using a shared selector for servlet write/read 九月 23, 2018 11:32:36 上午 org.apache.catalina.startup.Catalina load 資訊: Initialization processed in 1326 ms 九月 23, 2018 11:32:36 上午 org.apache.catalina.core.StandardService startInternal 資訊: Starting service [Catalina] 九月 23, 2018 11:32:36 上午 org.apache.catalina.core.StandardEngine startInternal 資訊: Starting Servlet Engine: Apache Tomcat/8.5.32 九月 23, 2018 11:32:39 上午 org.apache.jasper.servlet.TldScanner scanJars 資訊: 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. 九月 23, 2018 11:32:39 上午 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].StandardContext[/javaweba1]] at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1421)atorg.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1421) at org.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1421)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1411) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaweba1]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) … 6 more Caused by: java.lang.IllegalArgumentException: The servlets named [forwardServlet] and [cn.itcast.Servlet.ForwardServlet] are both mapped to the url-pattern [/forwardServlet] which is not permitted at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:326) at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:319) at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2379) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2056) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1942) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1936) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1936) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1936) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1143) 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:94) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) … 6 more
九月 23, 2018 11:32:39 上午 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]] at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Catalina.start(Catalina.java:681) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1421)atorg.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1421) at org.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1421)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1411) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:949) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) … 6 more
九月 23, 2018 11:32:39 上午 org.apache.catalina.startup.Catalina start 嚴重: The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8181]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.startup.Catalina.start(Catalina.java:681) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) … 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) … 9 more Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:949) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) … 11 more
九月 23, 2018 11:32:39 上午 org.apache.coyote.AbstractProtocol pause 資訊: Pausing ProtocolHandler [“http-nio-8282”] 九月 23, 2018 11:32:39 上午 org.apache.coyote.AbstractProtocol pause 資訊: Pausing ProtocolHandler [“ajp-nio-8383”] 九月 23, 2018 11:32:39 上午 org.apache.catalina.core.StandardService stopInternal 資訊: Stopping service [Catalina] 九月 23, 2018 11:32:39 上午 org.apache.coyote.AbstractProtocol destroy 資訊: Destroying ProtocolHandler [“http-nio-8282”] 九月 23, 2018 11:32:39 上午 org.apache.coyote.AbstractProtocol destroy 資訊: Destroying ProtocolHandler [“ajp-nio-8383”] 上面這個錯誤是由於@WebServlet("/forwardServlet")和
衝突導致。二者都是配置Servlet的資訊,所以只需要寫其中的一個即可。