【问题标题】:Unable to configure Tomcat 7 on Eclipse Juno无法在 Eclipse Juno 上配置 Tomcat 7
【发布时间】:2013-01-28 11:12:36
【问题描述】:

我安装了带有 Spring Tools Suite 插件的 Eclipse Juno。

我需要将一个新导入的 Web 项目部署到我通过存储库安装在我的系统上的 Tomcat 7。

问题是New Server Wizard 屏幕不允许我选择 Tomcat 7,因为描述为空且不可修改。

我该如何解决这个问题?我可以选择其他版本的Tomcat,但是当我选择Tomcat的安装路径时,出现安装版本为7的错误。

【问题讨论】:

  • 可能和你的问题无关,是不是感觉juno特别慢?我做到了,并切换到 v3.8,速度更快,但仍然很慢……比 3.6 慢得多

标签: linux eclipse tomcat


【解决方案1】:

按照site中提供的说明

按照这些步骤操作,因为这是一个已知问题

  1. 转到Window–>Preferences–>Server–>Runtime Environments 并修复服务器的损坏路径/链接。
  2. org.eclipse.jst.server.tomcat.core.prefs 重命名为org.eclipse.jst.server.tomcat.core.prefs.bak(或者您可以删除此文件)。这个文件可以在\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings找到
  3. org.eclipse.wst.server.core.prefs 重命名为org.eclipse.wst.server.core.prefs.bak(或删除文件)。该文件也可以在与上述相同的位置找到。

【讨论】:

  • 那行得通。但不幸的是,我现在收到有关配置损坏的错误。 Tomcat 已启动,路径为“/usr/share/tomcat”也许我会打开另一个问题
【解决方案2】:
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.

【讨论】:

    【解决方案3】:

    点击添加配置运行时环境

    在服务器运行时环境窗口中,您很可能会看到 Apache Tomcat 7。 如果您删除运行时环境,然后返回新服务器向导,Tomcat 7 将可以再次添加。

    希望对您有所帮助。这让我疯了几天

    【讨论】:

      【解决方案4】:

      Eclipse Juno 可能尚未与 Apache Tomcat 7 完全兼容。使用 Tomcat 6 进行安装和配置工作。很简单。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-01-15
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多