Error during artifact deployment.部署失败详细信息

Error during artifact deployment.部署失败详细信息

C:\apache-tomcat-8.5.73\bin\catalina.bat run

[2022-02-12 10:52:47,332] Artifact demo:war exploded: Waiting for server connection to start artifact deployment…

Using CATALINA_BASE:   "C:\Users\Willi\AppData\Local\JetBrains\IntelliJIdea2021.3\tomcat\5e893df0-988f-45d4-ac65-3c743e80c13a"

Using CATALINA_HOME:   "C:\apache-tomcat-8.5.73"

Using CATALINA_TMPDIR: "C:\apache-tomcat-8.5.73\temp"

Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_271"

Using CLASSPATH:       "C:\apache-tomcat-8.5.73\bin\bootstrap.jar;C:\apache-tomcat-8.5.73\bin\tomcat-juli.jar"

Using CATALINA_OPTS:   ""

Connected to the target VM, address: '127.0.0.1:50971', transport: 'socket'

12-Feb-2022 10:52:49.089 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/8.5.73

12-Feb-2022 10:52:49.091 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建:        Nov 11 2021 13:14:36 UTC

12-Feb-2022 10:52:49.091 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号:      8.5.73.0

12-Feb-2022 10:52:49.092 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 操作系统名称:      Windows 10

12-Feb-2022 10:52:49.092 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本:           10.0

12-Feb-2022 10:52:49.092 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构:              amd64

12-Feb-2022 10:52:49.092 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量:     C:\Program Files\Java\jdk1.8.0_271\jre

12-Feb-2022 10:52:49.092 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java虚拟机版本:    1.8.0_271-b09

12-Feb-2022 10:52:49.092 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商:        Oracle Corporation

12-Feb-2022 10:52:49.092 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:     C:\Users\Willi\AppData\Local\JetBrains\IntelliJIdea2021.3\tomcat\5e893df0-988f-45d4-ac65-3c743e80c13a

12-Feb-2022 10:52:49.092 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:     C:\apache-tomcat-8.5.73

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.util.logging.config.file=C:\Users\Willi\AppData\Local\JetBrains\IntelliJIdea2021.3\tomcat\5e893df0-988f-45d4-ac65-3c743e80c13a\conf\logging.properties

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:50971,suspend=y,server=n

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -javaagent:C:\Users\Willi\AppData\Local\JetBrains\IntelliJIdea2021.3\captureAgent\debugger-agent.jar

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcom.sun.management.jmxremote=

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcom.sun.management.jmxremote.port=1099

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcom.sun.management.jmxremote.ssl=false

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcom.sun.management.jmxremote.password.file=C:\Users\Willi\AppData\Local\JetBrains\IntelliJIdea2021.3\tomcat\5e893df0-988f-45d4-ac65-3c743e80c13a\jmxremote.password

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcom.sun.management.jmxremote.access.file=C:\Users\Willi\AppData\Local\JetBrains\IntelliJIdea2021.3\tomcat\5e893df0-988f-45d4-ac65-3c743e80c13a\jmxremote.access

12-Feb-2022 10:52:49.093 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.rmi.server.hostname=127.0.0.1

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djdk.tls.ephemeralDHKeySize=2048

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.protocol.handler.pkgs=org.apache.catalina.webresources

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dignore.endorsed.dirs=

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcatalina.base=C:\Users\Willi\AppData\Local\JetBrains\IntelliJIdea2021.3\tomcat\5e893df0-988f-45d4-ac65-3c743e80c13a

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcatalina.home=C:\apache-tomcat-8.5.73

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.io.tmpdir=C:\apache-tomcat-8.5.73\temp

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent 使用APR版本[1.7.0]加载了基于APR的Apache Tomcat本机库[1.2.31]。

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR功能:IPv6[true]、sendfile[true]、accept filters[false]、random[true]。

12-Feb-2022 10:52:49.094 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL配置:useAprConnector[false],useOpenSSL[true]

12-Feb-2022 10:52:49.106 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL成功初始化 [OpenSSL 1.1.1l  24 Aug 2021]

12-Feb-2022 10:52:49.321 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"]

12-Feb-2022 10:52:49.358 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

12-Feb-2022 10:52:49.375 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 829 ms

12-Feb-2022 10:52:49.432 信息 [main] org.apache.catalina.core.StandardService.startInternal 正在启动服务[Catalina]

12-Feb-2022 10:52:49.432 信息 [main] org.apache.catalina.core.StandardEngine.startInternal 正在启动 Servlet 引擎:[Apache Tomcat/8.5.73]

12-Feb-2022 10:52:49.443 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"]

12-Feb-2022 10:52:49.457 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 82 ms

Connected to server

[2022-02-12 10:52:49,755] Artifact demo:war exploded: Artifact is being deployed, please wait…

12-Feb-2022 10:52:50.156 严重 [RMI TCP Connection(7)-127.0.0.1] org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error at line 1 column 10: 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。

org.xml.sax.SAXParseException; systemId: file:/C:/Users/Willi/IdeaProjects/demo/out/artifacts/demo_war_exploded/WEB-INF/web.xml; lineNumber: 1; columnNumber: 10; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)

at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)

at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:746)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:1016)

at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:714)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:507)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:867)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:796)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:142)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:644)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1496)

at org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml(WebXmlParser.java:119)

at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1067)

at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)

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:5130)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)

at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1775)

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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:291)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)

at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)

at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:483)

at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)

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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:291)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)

at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)

at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)

at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)

at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)

at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)

at java.security.AccessController.doPrivileged(Native Method)

at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)

at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)

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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)

at sun.rmi.transport.Transport$1.run(Transport.java:200)

at sun.rmi.transport.Transport$1.run(Transport.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:196)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

12-Feb-2022 10:52:50.159 严重 [RMI TCP Connection(7)-127.0.0.1] org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml 解析应用web.xml错误,路径:[file:/C:/Users/Willi/IdeaProjects/demo/out/artifacts/demo_war_exploded/WEB-INF/web.xml]

org.xml.sax.SAXParseException; systemId: file:/C:/Users/Willi/IdeaProjects/demo/out/artifacts/demo_war_exploded/WEB-INF/web.xml; lineNumber: 1; columnNumber: 10; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)

at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)

at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)

at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1472)

at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(XMLScanner.java:746)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(XMLDocumentFragmentScannerImpl.java:1016)

at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(XMLScanner.java:714)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:507)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:867)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:796)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:142)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:644)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1496)

at org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml(WebXmlParser.java:119)

at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1067)

at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)

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:5130)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)

at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1775)

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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:291)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)

at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)

at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:483)

at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)

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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:291)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)

at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)

at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)

at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)

at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)

at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)

at java.security.AccessController.doPrivileged(Native Method)

at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)

at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)

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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)

at sun.rmi.transport.Transport$1.run(Transport.java:200)

at sun.rmi.transport.Transport$1.run(Transport.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:196)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

12-Feb-2022 10:52:50.230 严重 [RMI TCP Connection(7)-127.0.0.1] org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml 出现在第 [1] 行 第 [10] 列

12-Feb-2022 10:52:50.253 严重 [RMI TCP Connection(7)-127.0.0.1] org.apache.catalina.startup.ContextConfig.configureStart 由于之前的错误,标记当前应用程序不可用

12-Feb-2022 10:52:50.270 严重 [RMI TCP Connection(7)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal 一个或多个组件将上下文标记为未正确配置

12-Feb-2022 10:52:50.274 严重 [RMI TCP Connection(7)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal 由于之前的错误,Context[/demo]启动失败

[2022-02-12 10:52:50,293] Artifact demo:war exploded: Error during artifact deployment. See server log for details.

12-Feb-2022 10:52:59.448 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [C:\apache-tomcat-8.5.73\webapps\manager]

12-Feb-2022 10:52:59.844 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。

12-Feb-2022 10:53:00.010 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[C:\apache-tomcat-8.5.73\webapps\manager]的部署已在[561]毫秒内完成

com.imooc.servlet.ListenerpatternServletcom.imooc.servlet.HelloServletcopyright2022@imooc.com 京ICP備案20182832title慕课网程序员的梦工厂404/error/404.html500/error/500.html



正在回答

登陆购买课程后可参与讨论,去登陆

3回答

同学你好,测试代码是没问题的,该报错可能是由于xml前有空格或者不可见字符导致的

https://img1.sycdn.imooc.com//climg/62074a1d09944a0c07650125.jpg

同学可以将鼠标放到xml的第一个字符处点击退格重新运行项目试试

如果还有问题,同学可以下载源码,将源码的xml头部复制到自己项目中试试

祝学习愉快~

晓舟 提问者 2022-02-12 10:58:55
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
             version="4.0">
    <listener>
        <listener-class>com.imooc.servlet.Listener</listener-class>
    </listener>
    <servlet>
        <servlet-name>patternServlet</servlet-name>
        <servlet-class>com.imooc.servlet.HelloServlet</servlet-class>
    </servlet>
    <context-param>
        <param-name>copyright</param-name>
        <param-value>2022@imooc.com 京ICP備案20182832</param-value>
    </context-param>
    <context-param>
        <param-name>title</param-name>
        <param-value>慕课网程序员的梦工厂</param-value>
    </context-param>
    <error-page>
        <error-code>404</error-code>
        <location>/error/404.html</location>
    </error-page>
        <error-page>
            <error-code>500</error-code>
            <location>/error/500.html</location>
        </error-page>
    </web-app>


晓舟 提问者 2022-02-12 10:57:54
com.imooc.servlet.ListenerpatternServletcom.imooc.servlet.HelloServletcopyright2022@imooc.com 京ICP備案20182832title慕课网程序员的梦工厂404/error/404.html500/error/500.html

xml的配置信息

  • 提问者 晓舟 #1
    com.imooc.servlet.ListenerpatternServletcom.imooc.servlet.HelloServletcopyright2022@imooc.com 京ICP備案20182832title慕课网程序员的梦工厂404/error/404.html500/error/500.html


    2022-02-12 10:58:22
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师