简体   繁体   English

无法在Eclipse Juno上配置Tomcat 7

[英]Unable to configure Tomcat 7 on Eclipse Juno

I have Eclipse Juno with Spring Tools Suite plugin installed. 我安装了Eclipse Juno和Spring Tools Suite插件。

I need to deploy a newly imported web project to Tomcat 7, which I installed on my system via repository. 我需要将新导入的Web项目部署到Tomcat 7,我通过存储库安装在我的系统上。

The problem is that the New Server Wizard screen won't allow me to select Tomcat 7, as the description is empty and unmodifiable. 问题是New Server Wizard屏幕不允许我选择Tomcat 7,因为描述是空的且不可修改。

Eclipse截图

How can I fix this? 我怎样才能解决这个问题? I can select other versions of Tomcat but when I select the installation path of Tomcat I get an error that the installed version is 7. 我可以选择其他版本的Tomcat但是当我选择Tomcat的安装路径时,我得到的错误是安装的版本是7。

As per the instruction s provided in this site 根据本网站提供的说明

Follow these steps, as this is a known issue 请按照以下步骤操作,因为这是一个已知问题

  1. Go to Window–>Preferences–>Server–>Runtime Environments and fix the broken path/link for the server. 转到Window–>Preferences–>Server–>Runtime Environments并修复Window–>Preferences–>Server–>Runtime Environments的损坏路径/链接。
  2. Rename the org.eclipse.jst.server.tomcat.core.prefs to org.eclipse.jst.server.tomcat.core.prefs.bak (or you can delete this file). org.eclipse.jst.server.tomcat.core.prefs重命名为org.eclipse.jst.server.tomcat.core.prefs.bak (或者您可以删除此文件)。 This file can be found at \\workspace\\.metadata\\.plugins\\org.eclipse.core.runtime\\.settings 此文件位于\\workspace\\.metadata\\.plugins\\org.eclipse.core.runtime\\.settings
  3. Rename the org.eclipse.wst.server.core.prefs to org.eclipse.wst.server.core.prefs.bak (or delete the file). org.eclipse.wst.server.core.prefs重命名为org.eclipse.wst.server.core.prefs.bak (或删除该文件)。 This file also can be found at the same location as above. 此文件也可以在上面的相同位置找到。
Follow these steps

1.)Go to Window–>Preferences–>Server–>Runtime Environments and fix the broken path/link for the server.
2.)delete this file org.eclipse.jst.server.tomcat.core.prefs under this location \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
3.)delete this file org.eclipse.wst.server.core.prefs under this location \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings

After following these step's you can configure tomcat in eclipse.

尝试转到“新建服务器向导”

Click on Add Configuration Runtime environments 单击“添加配置运行时环境”

在此输入图像描述

On the Server Runtime Environments Window you will more than likely see Apache Tomcat 7. If you remove the runtime environment and then go Back to the New Server Wizard Tomcat 7 will be available to add again. 在服务器运行时环境窗口中,您很可能会看到Apache Tomcat 7.如果删除运行时环境,然后返回到新服务器向导,则可以再次添加Tomcat 7。

Hope that helps. 希望有所帮助。 That drove me nuts for a few days 这让我疯了几天

The Eclipse Juno may not be fully compatible with the Apache Tomcat 7 yet. Eclipse Juno可能还不完全兼容Apache Tomcat 7。 Installing and configuring with Tomcat 6 works. 使用Tomcat 6进行安装和配置。 Simple. 简单。

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

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