请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

启动tomcat出现如图示错误,浏览器http://localhost:8080/o2o/index.jsp显示404

正在回答 回答被采纳积分+3

1回答

翔仔 2019-10-26 00:07:37

同学好,感觉还是配置上有问题,这个是访问URL出错还是启动tomcat的时候就出错? 说的是参数非法。

可以参考 

https://www.jb51.net/article/127829.htm

进行搭建

0 回复 有任何疑惑可以回复我~
  • 提问者 caldevens #1
    老师好,早上按参考的检查了一下,tomcat启动没问题,配置步骤也检查了一遍应该没问题,最后run as/maven install出现如下错误
    [ERROR] Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2: Could not transfer artifact org.apache.maven.plugins:maven-war-plugin:pom:2.2 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.40.215] failed: Read timed out -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    
    我按照帮助信息[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException  稍微看了下说是plugin的问题,按照前两个建议我仔细检查了下pom.xml里面内容跟老师的是一样的,然后第三方maven仓库设置也没问题,下面几个建议没看明白
    回复 有任何疑惑可以回复我~ 2019-10-26 09:11:18
  • 提问者 caldevens #2
    run as/maven install没报错了,更新了下仓库配置。然后,浏览器依然404
    回复 有任何疑惑可以回复我~ 2019-10-26 10:57:39
  • 提问者 caldevens #3
    解决了,下午把tomcat服务器换成8.0的之后没用谷歌浏览器打开就能看到了,一开始就把我整蒙了,T-T
    回复 有任何疑惑可以回复我~ 2019-10-26 19:41:37
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信