Tomcat 6.0和Eclipse。服务器的多个实例表现不同 [英] Tomcat 6.0 and Eclipse. Multiple instances of the server behave differently

查看:146
本文介绍了Tomcat 6.0和Eclipse。服务器的多个实例表现不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Win7 PC上安装了Tomcat 6.0。我使用64 / 32bit Windows安装。
在Eclipse中,我能够设置路径并设置服务器以使用我的Tomcat安装。在我从Eclipse内部运行服务器之前,一切似乎都运行良好。

I have Tomcat 6.0 installation on my Win7 PC. I used 64/32bit windows installation. In Eclipse I was able to set paths and set server to use my Tomcat installation. Everything seems working fine until I run server from inside Eclipse.

我注意到 http:// localhost:8080 / index.html 页面不可用(Tomcat默认主页)。我也无法访问 http:// localhost:8080 / axis2 。我也安装了Axis2。

I noticed that http://localhost:8080/index.html page is not available (Tomcat default home page). I also can't access http://localhost:8080/axis2. I have Axis2 installed too.

由于我很难长时间制作简单的axix2 Web服务,我想也许这个Tomcat的Eclipse实例正在增加我的问题?

Since I am struggling to make simple axix2 web service for long time, I am thinking maybe this Eclipse instance of Tomcat is adding to my issues?

当我从Windows GUI启动Tomcat时,一切都按预期工作。

When I start Tomcat from windows GUI everything works as I expect.

任何想法?

谢谢。

推荐答案

Eclipse默认情况下不会控制Tomcat安装及其所有预部署webapps,而只是使用其唯一的服务器引擎,并使用工作区元数据作为部署空间。当您从Eclipse内部启动这样的服务器配置时,所有预先部署的Web应用程序都将被忽略,包括Tomcat的默认主页。

Eclipse does by default not take control over the Tomcat installation and all of its pre-deployed webapps, instead it just uses its sole server engine and uses the workspace metadata as deploy space. When you start such a server configuration from inside Eclipse, all of the pre-deployed webapps will just be plain ignored, including Tomcat's default homepage.

让Eclipse控制在Tomcat安装中,您需要双击 Servers 视图中的Tomcat服务器条目以获取其配置,然后在左侧列的 Server Locations 下,您需要选择使用Tomcat安装(注意,当它显示为灰色时,请阅读前导文本部分!它需要在没有任何项目的情况下发布。)

To let Eclipse take control over the Tomcat installation, you need to doubleclick the Tomcat server entry in Servers view to get its configuration, then at the left column, under Server Locations, you need to select Use Tomcat installation (note, when it is grayed out, read the section leading text! It needs to be published without any projects).

这篇关于Tomcat 6.0和Eclipse。服务器的多个实例表现不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆