为了账号安全,请及时绑定邮箱和手机立即绑定

war放到tomcat就resource is not available?

war放到tomcat就resource is not available?

汪汪一只猫 2018-08-23 20:56:05
我把这个项目在idea里clean and install之后war文件放到了tomcat安装目录的webapps目录下,启动tomcat,随便看一个网页就是The requested resource is not available。只有tomcat的主页是能看的。我需要项目在tomcat 7.0.56里正常运行。jetty配置如下:    <plugin>         <groupId>org.mortbay.jetty</groupId>         <artifactId>maven-jetty-plugin</artifactId>         <version>6.1.25</version>         <configuration>             <connectors>                 <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">                     <port>8888</port>                     <maxIdleTime>60000</maxIdleTime>                 </connector>             </connectors>             <contextPath>/ABC</contextPath>             <scanIntervalSeconds>0</scanIntervalSeconds>         </configuration>     </plugin>
查看完整描述

2 回答

?
白衣染霜花

TA贡献1796条经验 获得超10个赞

谢谢,问题已解决。正确的网址是:http://localhost:8888/项目名-1.0/test.html。
war文件的文件名是项目名-1.0.war,我原来忘记了在网址里加-1.0,就不能用了。

查看完整回答
反对 回复 2018-08-26
  • 2 回答
  • 0 关注
  • 1048 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信