首页 > Web开发 > 详细

Tomcat问题,不能正确访问http://localhost:8080/

时间:2016-11-01 14:37:38      阅读:376      评论:0      收藏:0      [点我收藏+]

最近在学Struts2框架部分的内容,但是eclipse中配置tomcat遇到了很大的问题,当辛辛苦苦的配置完了之后,竟让连小猫的首页都不能访问,http://localhost:8080/输入了之后提示HTTP Status 404

type Status report

message /sOffice2/

description The requested resource  is not available.

  于是乎,心酸的查找bug开始了,

(1)首先xxx.jsp文件必须放在WebContent目录下面,而不能放在WEB_INF目录之下

(2)第二个问题是在

1:Click on Window > Show view > Server or right click on the server in "Servers" view, select "Properties".
2:In the "General" panel, click on the "Switch Location" button.
3:The "Location: [workspace metadata]" should replace by something else.
4:Open the Overview screen for the server by double clicking it.
In the Server locations tab , select "Use Tomcat location".
5:Save the configurations and restart the Server.

但是上面两个方法我全部都没有用。哭.....

(3)最后发现,即使eclipse中的tomcat服务器打开了,也没有,必须把外部的tomcat服务器打开。

c

 

Tomcat问题,不能正确访问http://localhost:8080/

原文:http://www.cnblogs.com/xiaxj/p/6019055.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!