服务器未启动 [英] server not starting
问题描述
我正在尝试在 struts2 中创建应用程序,所以我已经下载了 apache-tomcat7.0、eclipse juno 并且我正在尝试在 eclipse juno 中使用这个服务器,我已经在 eclipse 中正确配置了它并且它在 eclipse 中很好地启动,但是当我在我的服务器在 Eclipse 中启动后在我的网络浏览器中输入 localhost:8080
时,它是我显示错误
i am trying to create application in struts2 so i have downloaded apache-tomcat7.0,eclipse juno and i am trying to use this server in eclipse juno , i have configure it properly in eclipse and it is starting in eclipse fine ,but when i am typing localhost:8080
in my web browser after my server started in eclipse then it is me showing error
HTTP 状态 404 -/
HTTP Status 404 - /
输入状态报告
留言/
描述请求的资源不可用.
description The requested resource is not available.
Apache Tomcat/7.0.35
Apache Tomcat/7.0.35
推荐答案
您必须选择正确的服务器位置.请按照以下步骤操作.
You have to select the correct server location. Please follow bellow steps.
- 选择窗口 => 显示视图 => 服务器
- 然后根据需要添加服务器.如果已经添加跳过这一步
- 双击您添加的服务器
- 然后将打开服务器概览.从那里点击服务器位置.
- 然后选择第二个选项(使用 Tomcat 安装).
- 然后保存并重新启动服务器.
现在您应该可以访问您的服务器了.
Now you should be able to access your server.
注意:默认选择是使用工作区元数据.这不会修改 tomcat 安装.但是通过这个选择,你可以在 eclipse 内部浏览器中运行 web 应用程序.
Note: By default selecttion is Use workspace meta data. This does not modify the tomcat installation. But with this selection you can run the web application in the eclipse internal browser.
这篇关于服务器未启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!