Artifact is deployed successfully项目部署成功,但访问自带的index页面没有反应

项目Artifactisdeployedsuccessfully,但访问index页面无响应。问题源于Tomcat配置路径错误。解决方法是检查Server的URL和Deployment中Applicationcontext的路径,确保两者一致,从而修复问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Artifact is deployed successfully项目部署成功,但访问自带的index页面没有反应

16-Nov-2020 09:27:32.350 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 84 ms
Connected to server
[2020-11-16 09:27:32,550] Artifact mybatis:war exploded: Artifact is being deployed, please wait...
16-Nov-2020 09:27:36.785 信息 [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.
16-Nov-2020 09:27:42.339 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\software\apache-tomcat-8.0.46\webapps\manager
16-Nov-2020 09:27:42.478 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\software\apache-tomcat-8.0.46\webapps\manager has finished in 139 ms
[2020-11-16 09:27:44,783] Artifact mybatis:war exploded: Artifact is deployed successfully
[2020-11-16 09:27:44,783] Artifact mybatis:war exploded: Deploy took 12,234 milliseconds

这个访问index页面面直接给我报这个错
在这里插入图片描述

原因

后面仔细检查之后才发现,是在给tomcat配置项目的时候路径写得有问题

解决

检查这个Server里面的url
在这里插入图片描述

再检查Deployment中的Application context的路径,
在这里插入图片描述
这两个路径对比之后,发现有错误,然后就需要把他们两个保持一致,基本上问题就解决了

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值