Tomcat 9.0: Error deploying web application after install

parv desai :
07-Feb-2020 12:04:55.837 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.30
07-Feb-2020 12:04:55.840 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Dec 7 2019 16:42:04 UTC
07-Feb-2020 12:04:55.841 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.30.0
07-Feb-2020 12:04:55.841 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
07-Feb-2020 12:04:55.841 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.0
07-Feb-2020 12:04:55.841 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
07-Feb-2020 12:04:55.841 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\Java\jre1.8.0_231
07-Feb-2020 12:04:55.842 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_231-b11
07-Feb-2020 12:04:55.842 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
07-Feb-2020 12:04:55.842 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Program Files\Apache Software Foundation\Tomcat 9.0
07-Feb-2020 12:04:55.842 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         C:\Program Files\Apache Software Foundation\Tomcat 9.0
07-Feb-2020 12:04:55.843 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\logging.properties
07-Feb-2020 12:04:55.843 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
07-Feb-2020 12:04:55.843 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
07-Feb-2020 12:04:55.843 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
07-Feb-2020 12:04:55.844 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
07-Feb-2020 12:04:55.844 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 9.0
07-Feb-2020 12:04:55.845 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0
07-Feb-2020 12:04:55.849 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 9.0\temp
07-Feb-2020 12:04:55.851 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.7.0].
07-Feb-2020 12:04:55.854 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
07-Feb-2020 12:04:55.855 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
07-Feb-2020 12:04:55.861 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1c  28 May 2019]
2020年2月7日12:04:56.219信息[主] org.apache.coyote.AbstractProtocol.init初始化ProtocolHandler [“ http-nio-8888”] 
2020年2月7日12:04:56.431信息[主]组织。 apache.coyote.AbstractProtocol.init初始化ProtocolHandler [“ ajp-nio-9999”] 
2020年2月7日12:04:56.448信息[main] org.apache.catalina.startup.Catalina.load服务器初始化的时间为[875]毫秒
2020年2月7日12:04:56.491信息[主] org.apache.catalina.core.StandardService.startInternal启动服务[卡塔琳娜] 
2020年2月7日12:04:56.492信息[主] org.apache.catalina。 core.StandardEngine.startInternal启动Servlet引擎:[Apache Tomcat / 9.0.30]
07-Feb-2020 12:04:56.509 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\docs]
07-Feb-2020 12:04:56.639 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [XMLSchema.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.639 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [datatypes.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
2020年7月2日12:04:56.641警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[xml.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.643警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-app_2_2.dtd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.644警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-jsptaglibrary_1_1.dtd]。如果启用了XML验证,则很有可能破坏XML验证。
07-Feb-2020 12:04:56.645 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [web-app_2_3.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.646 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [web-jsptaglibrary_1_2.dtd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.647 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [j2ee_web_services_1_1.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
2020年7月2日12:04:56.648警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[j2ee_web_services_client_1_1.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.649警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-app_2_4.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.652警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-jsptaglibrary_2_0.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.653警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[j2ee_1_4.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.655警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[jsp_2_0.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.656警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-app_2_5.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.657警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-jsptaglibrary_2_1.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.658警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[javaee_5.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.658警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[jsp_2_1.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.659警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[javaee_web_services_1_2.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.660警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[javaee_web_services_client_1_2.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.664警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-app_3_0.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
07-Feb-2020 12:04:56.665 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [web-fragment_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.666 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [web-common_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.666 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [javaee_6.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.667 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [jsp_2_2.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.668 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [javaee_web_services_1_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.669 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [javaee_web_services_client_1_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
2020年7月2日12:04:56.670警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-app_3_1.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.671警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-fragment_3_1.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.674警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-common_3_1.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
07-Feb-2020 12:04:56.676 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [javaee_7.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.676 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [jsp_2_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
07-Feb-2020 12:04:56.678 WARNING [main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor The XML schema [javaee_web_services_1_4.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
2020年7月2日12:04:56.680警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[javaee_web_services_client_1_4.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.681警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-app_4_0.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.682警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-fragment_4_0.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年7月2日12:04:56.684警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[web-common_4_0.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.686警告[main] org.apache.tomcat.util.descriptor.DigesterFactory.locationFor找不到XML模式[javaee_8.xsd]。如果启用了XML验证,则很有可能破坏XML验证。
2020年2月7日12:04:56.758严重[main] org.apache.catalina.startup.HostConfig.deployDirectory部署Web应用程序目录[C:\ Program Files \ Apache Software Foundation \ Tomcat 9.0 \ webapps \ docs] 
    java。 lang.IllegalStateException:启动子级时出错
        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.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        在java.util.concurrent.AbstractExecutorService.submit(来源不明)
        在org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)
        在org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java: 429),
        位于org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309),
        位于org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576),
        位于org.apache.catalina.util.LifecycleBase 
        org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
        上的.fireLifecycleEvent(LifecycleBase.java:123)在org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
        在org.apache.catalina.core.StandardEngine.startInternal(
        StandardEngine.java:262)
        在org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:909 在org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:183)
        在org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
        在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        在org.apache。
        位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)的catalina.core.StandardServer.startInternal(StandardServer.java:930)
        位于org.apache.catalina.startup.Catalina.start(Catalina.java: 633)
        在sun.reflect.NativeMethodAccessorImpl.invoke(
        未知方法)处在sun.reflect.NativeMethodAccessorImpl.invoke 
        (未知源)
        处在java.lang.reflect.Method.invoke(未知源)处的sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)
        在org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
        处在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
    造成原因:org.apache.catalina.LifecycleException:失败
        在org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)处启动组件[StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ docs]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
        ... 37 more
    Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
        at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:246)
        at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)
        at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1968)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1128)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:774)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5051)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        ... 38 more
07-Feb-2020 12:04:56.766 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\docs] has finished in [257] ms
2020年2月7日12:04:56.768信息[主] org.apache.catalina.startup.HostConfig.deployDirectory部署Web应用程序目录[C:\ Program Files \ Apache Software Foundation \ Tomcat 9.0 \ webapps \ examples] 
7月2日-2020 12:04:56.818严重[main] org.apache.catalina.startup.HostConfig.deployDirectory部署Web应用程序目录时出错[C:\ Program Files \ Apache Software Foundation \ Tomcat 9.0 \ webapps \ examples] 
    java.lang.IllegalStateException :
        在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
        org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)启动孩子出错.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.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)
        在org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
        在org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
        在org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (LifecycleBase.java:123)
        在org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
        在org.apache.cat.ina.util.LifecycleBase.setState(LifecycleBase.java:366)
        在org.apache。
        位于org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)的catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
        位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java: 183)
        在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1374)
        在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1384)
        在java.util.concurrent.FutureTask 
        org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)的.run(未知源),org.apache.catalina.core的
        java.util.concurrent.AbstractExecutorService.submit(未知源)
        org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)(
        位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)处的ContainerBase.startInternal(ContainerBase.java:909 
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
        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:343)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
    Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]]
        at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
        ... 37 more
    Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
        在org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)
        在org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:246)
        在org.apache.catalina.startup .ContextConfig.processJarsForWebFragments(ContextConfig.java:1968)
        在org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1128)
        在org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:774)
        在org.apache.catalina.util.LifecycleBase.fireLifecycleEvent 
        (LifecycleBase.java:123)上的org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301 
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5051)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        ... 38 more
07-Feb-2020 12:04:56.822 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\examples] has finished in [54] ms
07-Feb-2020 12:04:56.945 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\ROOT]
07-Feb-2020 12:04:56.963 SEVERE [main] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\ROOT]
    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.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
        在org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
        在org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
        在org.apache.catalina.util.LifecycleBase.setState (LifecycleBase.java:366)
        在org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
        在org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
        在org.apache。
        位于org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1384)的catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        在org.apache.catalina.core.ContainerBase $ StartChild.call( ContainerBase.java:1374)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
        at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
        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(StandardService.java:421)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
        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:343)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
    Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
        at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
        ... 37 more
    Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
        at org.apache.tomcat.util.scan.StandardJarScanner.doScanClassPath(StandardJarScanner.java:246)
        at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:229)
        at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1968)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1128)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:774)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5051)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
        ... 38 more
07-Feb-2020 12:04:56.965 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\ROOT] has finished in [20] ms
07-Feb-2020 12:04:56.975 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8888"]
07-Feb-2020 12:04:56.991 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-9999"]
07-Feb-2020 12:04:56.996 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [545] milliseconds

localhost:8080 shows error 404-not found

I just installed tomcat server on my windows 10 pc. Now when i run startup.bat i get this error. All enviornment variables are set

  1. JRE_HOME: C:\Program Files\Java\jre1.8.0_231
  2. CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 9.0

windows services list also shows apache tomcat 9 running.

Kandy :

I am able to generate same error after replacing Tomcat 9 servlate-api to tomcat 8 this show that there version mismatch of servlet-api.

so, either download new tomcat 9 from tomcat site or place correct version servlet-api to path

x:\apache-tomcat-9.0.30\lib

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

JAXB无法在Tomcat 9和Java 9/10

非法反射访问时,我停止SpringBoot Web应用程序使用Tomcat 9和Java10

春天启动的Web应用程序不能在Tomcat运行9

“打开的文件太多”从Tomcat 7迁移到Tomcat 9后

Tomcat的7.0.73不使用Java 9工作

Eclipse的不可逆转的动态Web模块4.0选择; Tomcat的9不支持

将Tomcat 9添加到eclipse

如何更改Apache Tomcat 9的Java版本

在Tomcat 5.5中部署Web应用程序时如何解决Error listenerStart?

窗口10使tomcat 9在https上工作

启动孩子将Spring Boot Web应用程序部署到Tomcat 9时出错

Tomcat 9的Maven插件

Tomcat是否提供对Java 9 BETA的支持

为什么(0> 1 + 0> 9)返回False,而((0> 1)+(0> 9))返回0?

无法在Netbeans 9中设置Apache Tomcat

Tomcat 9 HTTP / 2图像“随机”损坏

Tomcat Web服务配置

pip install和UnicodeDecodeError:'utf-8'编解码器无法解码位置9的字节0xe0:无效的连续字节

conf / web.xml中的Apache tomcat <error-page>标记未呈现错误页面

无法在Tomcat 9上运行Jersey 2 Restful Web服务

如何知道我的Web应用程序的APPLICATION_CLIENT_ID和YOUR_AUTH0_DOMAIN

Tomcat 9和Web应用程序子目录的类路径问题

安装Tomcat 9后的HTTP状态404

如何在Tomcat 9的不同端口上部署多个Web应用程序?

Apache Tomcat 9的主要方法在哪里?

如何在Spring / Tomcat Web应用程序中加载$ {catalina.home} /conf/application.properties?

部署Web服务Apache Tomcat

trying to install windows after ubuntu

Debian上的Tomcat 9无法运行