gzllyh 2009-11-07 14:05
浏览 356
已采纳

在eclipse启动tomcat不能访问localhost:8080

我在eclipse中可以成功启动tomcat,但就是在浏览器中打开不了http://localhost:8080,报The requested resource (/) is not available. 但我单独启动tomcat(不在eclipse中启动),就可以成功访问,这是为什么啊?
我是用eclipse3.5+ Tomcat6.0

下面是eclipse启动tomcat的一些简短信息:
2009-11-7 14:00:54 org.springframework.web.struts.ContextLoaderPlugIn initWebApplicationContext
信息: Using context class 'org.springframework.web.context.support.XmlWebApplicationContext' for servlet 'action'
2009-11-7 14:00:54 org.springframework.web.struts.ContextLoaderPlugIn init
信息: ContextLoaderPlugIn for Struts ActionServlet 'action', module '': initialization completed in 13218 ms
2009-11-7 14:00:54 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-11-7 14:00:54 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-11-7 14:00:54 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/188 config=null
2009-11-7 14:00:54 org.apache.catalina.startup.Catalina start
信息: Server startup in 18318 ms

  • 写回答

2条回答 默认 最新

  • iteye_9154 2009-11-07 15:43
    关注

    tomcat启动没有出错啊,是没有添加项目的话,当然就是The requested resource (/) is not available.
    单独启动的时候tomcat自己有管理程序和例子程序

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)