日期:2014-05-17  浏览次数:20638 次

tomcat的webapps下面有部署好的项目,但就是访问不到,求解
用maven建立了webx工程:login-webx3-tutorial
在myeclipse中部署到tomcat中,启动tomcat,访问http://localhost:8080/login-webx3-tutorial/
出现错误:

HTTP Status 404 - /login-webx3-tutorial/

--------------------------------------------

type Status report

message /login-webx3-tutorial/

description The requested resource (/login-webx3-tutorial/) is not available.


--------------------------------------------

求解。明明部署好了,为什么还是访问不到呢?

------解决方案--------------------
404,就是资源没找到。
看下webapps下面是不是能找到这个应用,而且名称都正确。
------解决方案--------------------
你的web.xml里的webcome-list 里有没配置页面
没配置 需具体指定http://localhost:8080/login-webx3-tutorial/***.jsp
------解决方案--------------------
你的部署只是把文件copy到webapp下面了,至于这个工程有没有成功启那是另外一回事,

打开tomcat的manager,看看当前容器里面都有哪些应用,都会显示的