几许情长 2022-03-09 17:03 采纳率: 0%
浏览 84
已结题

Tomcat启动失败,问题出现在web.xml

问题遇到的现象和发生背景

img

ssm框架整合

问题出现在web.xml文件里面的标签

问题相关代码,请勿粘贴截图
<!--注册Spring框架-->
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <!--这里有问题!!!!!!!-->
        <param-value>classpath:applicationContext_*.xml</param-value>
    </context-param>

运行结果及报错内容
09-Mar-2022 16:46:24.925 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [4.0]. Default version will be used.
09-Mar-2022 16:46:26.295 信息 [RMI TCP Connection(3)-127.0.0.1] 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.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
09-Mar-2022 16:46:27.367 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
09-Mar-2022 16:46:27.367 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2022-03-09 04:46:27,387] Artifact mimissm:war exploded: Error during artifact deployment. See server log for details.
09-Mar-2022 16:46:34.389 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Tmocat\apache-tomcat-8.0.38\webapps\manager
09-Mar-2022 16:46:34.419 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Tmocat\apache-tomcat-8.0.38\webapps\manager has finished in 30 ms

我的解答思路和尝试过的方法

把 context-param 标签里面的内容删除就可以启动tomcat

我想要达到的结果

能够使得 listener ,context-param两个标签能够正常使用,还能启动tomcat

  • 写回答

1条回答 默认 最新

  • CSDN专家-sinJack 2022-03-09 17:21
    关注

    有 多个xml配置文件需要加载吗?

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 7月18日
  • 创建了问题 3月9日

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?