标签:over win stat 输入 repo jsp rest lips 有用
最近在学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/
标签:over win stat 输入 repo jsp rest lips 有用
原文地址:http://www.cnblogs.com/xiaxj/p/6019055.html