[英]Tomcat inside eclipse-server started successfully but
If I start apache tomcat server by clicking the startup.bat from the Apache bin folder it starts successfully and I can access http://localhost:8080/ from IE. 如果我通过单击Apache bin文件夹中的startup.bat启动apache tomcat服务器,它将成功启动,并且可以从IE访问http:// localhost:8080 / 。 I get the message Apache Tomcat is successful.
我收到消息Apache Tomcat成功。 But......
但......
In eclipse Luna, I have setup tomcat server(8). 在Eclipse Luna中,我安装了tomcat服务器(8)。 And started the server.
并启动服务器。 Now when I go to Internet explorer and type in http://localhost:8080/ i'm getting error.
现在,当我转到Internet Explorer并输入http:// localhost:8080 /时,我得到了错误。 http status 404 The requested resource not available.
http状态404请求的资源不可用。
Open Servers view in Eclipse, double-click to open configuration of Tomcat. 在Eclipse中打开服务器视图,双击以打开Tomcat的配置。 If you don't have a Web Modules deployed in path
/
. 如果您没有在
/
路径中部署Web模块 。 Tomcat will return 404 error. Tomcat将返回404错误。
When you start Tomcat by startup.bat, it will load Web Modules under $TOMCAT_HOME/webapps
. 通过startup.bat启动Tomcat时,它将在
$TOMCAT_HOME/webapps
下加载Web模块 。 The ROOT module will serve the request of path /
, so Tomcat could display a page without error. ROOT模块将处理路径
/
的请求,因此Tomcat可以显示一个没有错误的页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.