tomact 访问异常现象

xiaguiliang01 2009-03-29 08:38:00
安装了Tomcat,在myEclipse启动了它.很正常.
通过IE访问:http://127.0.0.1:8080/ 出现下面的报错信息是怎么回事呀

HTTP Status 404 - /

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

type Status report

message /

description The requested resource (/) is not available.


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

Apache Tomcat/5.5.27

...全文
111 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
king3320x 2009-03-30
  • 打赏
  • 举报
回复
http://localhost:8080/

这样看行不行
xiguagege 2009-03-30
  • 打赏
  • 举报
回复
如果想直接访问,即 http://localhost:8080/
需要保证..\tomcat\conf 下面的web.xml文件中的
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>

</welcome-file-list>
第一个欢迎页面指向index.jsp


---
记得重启tomcat
xiguagege 2009-03-30
  • 打赏
  • 举报
回复
找到这个文件夹 ..\tomcat\conf\Catalina\localhost
下面有个ROOT.XML
将里面的docBase修改为docBase="..\tomcat\webapps\ROOT" 也就是你的完全路径
然后访问http://localhost:8080/index.jsp
ghostjohn 2009-03-30
  • 打赏
  • 举报
回复
http://127.0.0.1:8080/
后面默认是index.jsp
这个错是index.jsp找不到,是网页问题,你应看一下这个文件还有没有,或是有没有错。

58,452

社区成员

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

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