IDEA tomcat启动异常 org.apache.catalina.startup.ContextConfig parseWebXml

启动Tomcat发现有异常,总是无法启动,具体的异常日志为下图

 

具体的解决方法为:在tomcat的conf/content.xml中加上<Loader delegate="true" />

<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- The contents of this file will be loaded for each web application -->
<Context>

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!--添加此行-->
<Loader delegate="true" />

<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->

<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->

</Context>

 

转载于:https://www.cnblogs.com/ymkfnuiwgij/p/6974430.html

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当您在解压缩Tomcat 7并运startup.bat后,遇到一闪而过的问题时,可以通过以下几种方法来解决: 1. 端口被占用:请确保Tomcat使用的端口没有被其他程序占用。可以通过更改Tomcat的端口号来解决此问题。可以修改Tomcat目录下的server.xml文件中的Connector标签中的port属性。 2. 缺少Java环境变量:请确保您的计算机上已经正确安装了Java,并且已经设置了JAVA_HOME环境变量。您可以在命令中运"java -version"来检查Java是否正确安装。 3. catalina_home环境变量没有配置:请确保您已经正确设置了CATALINA_HOME环境变量,指向您解压缩Tomcat的目录。可以在系统环境变量中添加或编辑CATALINA_HOME变量,并将其值设置为Tomcat的安装路径。 4. catalina.bat没有设置暂停(一闪而过):如果您使用的是Windows操作系统,可以尝试编辑Tomcat目录下的catalina.bat文件,在文件的最后添加一"pause",保存并重新运startup.bat文件,这样Tomcat启动时会暂停,方便您查看错误信息。 5. 不用配置环境变量的解决方案:如果您使用的是IntelliJ IDEA开发工具,并且安装了Smart Tomcat插件,可以尝试使用它自带的Tomcat and TomEE插件来启动项目。确保您已经正确勾选了相关配置选项。 请根据您的具体情况尝试上述解决方案,以解决Tomcat启动一闪而过的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [tomcat启动失败,提示错误:严重 [main] org.apache.catalina.startup.Catalina.load Catalina.start](https://blog.csdn.net/yang201610/article/details/88248599)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [双击startup.bat无法启动Tomcat且闪退](https://download.csdn.net/download/weixin_38673235/13742601)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [IDEA tomcat org.apache.catalina.startup.Catalina.start 毫秒后服务器启动](https://blog.csdn.net/weixin_44012428/article/details/120473255)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值