简体   繁体   English

在Eclipse中运行Apache Tomcat 7

[英]Running Apache Tomcat 7 in Eclipse

I am trying to run Apache Tomcat 7 on the Eclipse. 我正在尝试在Eclipse上运行Apache Tomcat 7。 But I am facing some problems. 但是我面临一些问题。 I configured the tomcat libraries. 我配置了tomcat库。 Then I also imported the war files in the existing workspace. 然后,我还将war文件导入到现有的工作空间中。 Then I tried running the index jsp page. 然后,我尝试运行索引jsp页面。 But I am getting error "Unable to load page". 但是我收到错误消息“无法加载页面”。 Cannot resolve proxy hostname. 无法解析代理主机名。 I am not sure why the tomcat is starting now. 我不确定为什么tomcat现在开始。

Can someone tell me what is this error ? 有人可以告诉我这是什么错误吗?

To run Tomcat, you need to either add a server using Eclipse's tomcat plugin or modify the run/debug configurations to point to your application's server.xml. 要运行Tomcat,您需要使用Eclipse的tomcat插件添加服务器,或者修改运行/调试配置以指向应用程序的server.xml。 The error you're getting suggests that tomcat is not running or that it's not configured properly. 您收到的错误提示tomcat未运行或未正确配置。 What exactly are you trying to do? 您到底想做什么?

if you are using windows then go to run type services.msc a window will open up from there stop the apache tomcat service and then try to run it from eclipse. 如果您使用的是Windows,则请运行“ services.msc”类型,然后将打开一个窗口,停止apache tomcat服务,然后尝试从Eclipse中运行它。

or just change the port numbers it might be used by some other application 或仅更改可能被其他应用程序使用的端口号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM