Artifact websocket:war exploded: Error during artifact deployment. See server log for details.

首先下面是本次错误的错误信息

org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file org.apache.catalina.core.StandardContext.startInternal Context [/websocket_war_exploded] startup failed due to previous errors
Artifact websocket:war exploded: Error during artifact deployment. See server log for details.
INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\Program Files\Apache Software Foundation\apache-tomcat-8.0.24\webapps\manager
INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\Program Files\Apache Software Foundation\apache-tomcat-8.0.24\webapps\manager has finished in 108 ms

一开始,我用**Artifact websocket:war exploded: Error during artifact deployment. See server log for details. ** 作为关键词,去搜索解决方法,但是搜索到的主要有

  1. war包配置文件是否有问题,我在删除了后重新添加的配置后还是失败。
  2. 查看tomcate端口是否被占用,在关闭重新开启后,我发现我做无用功。
  3. 最后万能的解决方法,重启idea。当我没法解决问题的时候,可以试试重启提出问题的人或者软件。当然还是失败了。

然后我通过翻译软件翻译了这行**Artifact websocket:war exploded: Error during artifact deployment. See server log for details.**然后仔细研读,发现我可能是个智障。

译文:工件部署期间的错误。有关详细信息,请参阅服务器日志。

好的,换一行作为关键词再次搜索。

**org.apache.catalina.core.StandardContext.startInternal Context [/websocket_war_exploded] startup failed due to previous errors **

这一次搜索到了一篇博客的解决方案是修改web.xml文件里面的classpath。

瞬间灵光乍现,打开web.xml文件,很明显能看到classpath:spring/spring-*.xml在飘红。
然后知道了是resource没有被标识是资源文件路径。

解决方法:

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值