[英]Failed to access Tomcat started by Eclipse
i installed and setup tomcat 7
locally, started it from command line below, 我在本地安装并设置了
tomcat 7
,从下面的命令行启动了它,
$ startup.sh
-> successfully gained the access to http://localhost:8080 ->成功获得对http:// localhost:8080的访问权限
$ shutdown.sh
Next i started it from eclipse 3.7
below, 接下来我从下面的
eclipse 3.7
开始
Servers -> Tomcat 7 -> start
Console output: 控制台输出:
....
Starting ProtocolHandler ["http-bio-8080"]
org.apache.coyote.AbstractProtocol start
Starting ProtocolHandler ["ajp-bio-8009"]
org.apache.catalina.startup.Catalina start
Server startup in 1234 ms
-> however, failed to access http://localhost:8080 ->但是,无法访问http:// localhost:8080
HTTP Status 404 - /
type Status report
message /
description The requested resource (/) is not available.
Did i miss anything to bind tomcat 7
to eclipse 3.7
? 我是否想念将
tomcat 7
绑定到eclipse 3.7
任何东西?
@EDIT @编辑
According to @magomi
suggestion, i created a simple dynamic web project
from eclipse 3.7
, then ran it together with tomcat 7
successfully. 根据
@magomi
建议,我从eclipse 3.7
创建了一个简单的dynamic web project
,然后与tomcat 7
一起成功运行了它。
Tomcat is running but no ROOT application is installed. Tomcat正在运行,但未安装ROOT应用程序。 When you start tomcat right from your IDE only the specified application will be deployed.
当您直接从IDE启动tomcat时,只会部署指定的应用程序。 So you have to access this application via
http://localhost:8080/<yourapp>
. 因此,您必须通过
http://localhost:8080/<yourapp>
访问此应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.