请各位大佬指点迷津,小弟被这个错误支配了好久。不知道到底是怎么回事。
错误报告如下:
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server.服务器版本: Apache Tomcat/9.0.27
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 服务器构建: Oct 7 2019 09:57:22 UTC
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version number: 9.0.27.0
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS.版本: 10.0
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: 架构: amd64
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java 环境变量: D:\eclipse\Java\jdk-13.0.1
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM 版本: 13.0.1+9
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM.供应商: Oracle Corporation
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\eclipse\Eclipse\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\Tomcat\apache-tomcat-9.0.27
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\eclipse\Eclipse\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Tomcat\apache-tomcat-9.0.27
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\eclipse\Eclipse\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
2月 18, 2020 4:32:49 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
2月 18, 2020 4:32:49 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.7.0].
2月 18, 2020 4:32:49 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2月 18, 2020 4:32:49 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
2月 18, 2020 4:32:49 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized [OpenSSL 1.1.1c 28 May 2019]
2月 18, 2020 4:32:49 下午 org.apache.coyote.AbstractProtocol init
信息: 初始化协议处理器 [“http-nio-8080”]
2月 18, 2020 4:32:53 下午 org.apache.coyote.AbstractProtocol init
信息: 初始化协议处理器 [“ajp-nio-8009”]
2月 18, 2020 4:32:53 下午 org.apache.catalina.startup.Catalina load
信息: 服务器在[3,926]毫秒内初始化
2月 18, 2020 4:32:53 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
2月 18, 2020 4:32:53 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet engine: [Apache Tomcat/9.0.27]
2月 18, 2020 4:32:54 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [1,686] milliseconds.
2月 18, 2020 4:32:55 下午 org.apache.catalina.core.ContainerBase startInternal
严重: 子容器启动失败
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaFinalExam]]
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
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 S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1384 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1384) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1384)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaFinalExam]]
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 S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1384 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1384) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1384)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
… 21 more
Caused by: java.lang.IllegalArgumentException: 名为 [exam.servlet.AddcheSer]和 [exam.servlet.AdddepSer] 的servlet不能映射为一个url模式(url-pattern) [/AdddepSer]
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:342)
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:335)
at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2459)
at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2135)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2124)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2016)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2010)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2010)
at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1233)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1142)
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)
… 27 more
2月 18, 2020 4:32:55 下午 org.apache.catalina.core.ContainerBase startInternal
严重: 子容器启动失败
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子容器启动失败
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
Caused by: org.apache.catalina.LifecycleException: 子容器启动失败
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928)
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 S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1384 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1384) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1384)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
… 13 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaFinalExam]]
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
… 21 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaFinalExam]]
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 S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1384 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1384) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1384)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
… 21 more
Caused by: java.lang.IllegalArgumentException: 名为 [exam.servlet.AddcheSer]和 [exam.servlet.AdddepSer] 的servlet不能映射为一个url模式(url-pattern) [/AdddepSer]
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:342)
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:335)
at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2459)
at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2135)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2124)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2016)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2010)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2010)
at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1233)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1142)
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)
… 27 more
2月 18, 2020 4:32:55 下午 org.apache.catalina.startup.Catalina start
严重: 所必需的服务组件启动失败,所以无法启动Tomcat
org.apache.catalina.LifecycleException: 子容器启动失败
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928)
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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子容器启动失败
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
… 13 more
Caused by: org.apache.catalina.LifecycleException: 子容器启动失败
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928)
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 S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1384 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1384) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1384)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
… 13 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaFinalExam]]
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
… 21 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JavaFinalExam]]
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 S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1384 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1384) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1384)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1374)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
… 21 more
Caused by: java.lang.IllegalArgumentException: 名为 [exam.servlet.AddcheSer]和 [exam.servlet.AdddepSer] 的servlet不能映射为一个url模式(url-pattern) [/AdddepSer]
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:342)
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:335)
at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2459)
at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2135)
at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2124)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2016)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2010)
at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2010)
at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1233)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1142)
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)
… 27 more
2月 18, 2020 4:32:55 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler [“http-nio-8080”]
2月 18, 2020 4:32:55 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler [“ajp-nio-8009”]
2月 18, 2020 4:32:55 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service [Catalina]
2月 18, 2020 4:32:55 下午 org.apache.coyote.AbstractProtocol destroy
信息: 正在摧毁协议处理器 [“http-nio-8080”]
2月 18, 2020 4:32:55 下午 org.apache.coyote.AbstractProtocol destroy
信息: 正在摧毁协议处理器 [“ajp-nio-8009”]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/D:/Tomcat/apache-tomcat-9.0.27/lib/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
查到的资料说是jdk版本高某些api不适用,但是找不到是哪些。
tomcat 版本9.0 jdk 版本 13.0.1
球球各位了