tomcat关于网页的404路径错误

萌哥哥 2015-08-17 02:10:44
tomcat可以正常运行,页面也可以访问tomcat。通过myeclipse部署到tomcat却访问不了。老是提示HTTP Status 404 - description The requested resource () is not available.谁知道这是什么问题。
我的请求是:http://localhost:8080/jsp/servlet/hello
我的hello,servlet文件路径为C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\Servlet\WEB-INF\classes\com\hsp\servlet
另外servlet项目的xml里面部署

我感觉没有问题啊,怎么就是显示404错误呢??? 有没有大神帮我一把!!急急急
...全文
90 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
freeCalluo 2015-08-17
  • 打赏
  • 举报
回复
引用 2 楼 lonelywyl 的回复:
应该是localhost:8080/Servlet/servlet/hellow吧,看你程序部署的路劲来看
对的,你自己创建的工程名是Servlet URL的格式是 : 服务器地址:端口号/工程名/url-patten
andre374 2015-08-17
  • 打赏
  • 举报
回复
因为你的项目名就叫Servlet 啊,没有项目名称tomcat知道要去找哪个?
萌哥哥 2015-08-17
  • 打赏
  • 举报
回复
引用 2 楼 lonelywyl 的回复:
应该是localhost:8080/Servlet/servlet/hellow吧,看你程序部署的路劲来看
谢谢! 但是为什么是这个,而不是localhost:8080/servlet/hello呢
lonelywyl 2015-08-17
  • 打赏
  • 举报
回复
应该是localhost:8080/Servlet/servlet/hellow吧,看你程序部署的路劲来看
  • 打赏
  • 举报
回复
你的项目名叫jsp?

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧