首页 文章

无法在Eclipse Juno上配置Tomcat 7

提问于
浏览
1

我安装了Eclipse Juno和Spring Tools Suite插件 .

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

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

Eclipse screenshot

我怎样才能解决这个问题?我可以选择其他版本的Tomcat但是当我选择Tomcat的安装路径时,我得到的错误是安装的版本是7 .

4 回答

  • 3

    根据site中提供的说明

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

    • 转到 Window–>Preferences–>Server–>Runtime Environments 并修复服务器的损坏路径/链接 .

    • org.eclipse.jst.server.tomcat.core.prefs 重命名为 org.eclipse.jst.server.tomcat.core.prefs.bak (或者您可以删除此文件) . 该文件可在 \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings 找到

    • org.eclipse.wst.server.core.prefs 重命名为 org.eclipse.wst.server.core.prefs.bak (或删除文件) . 此文件也可以在上面的相同位置找到 .

  • 0
    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.
    
  • 1

    Try going to New Server Wizard

    单击“添加配置运行时环境”

    enter image description here

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

    希望有所帮助 . 这让我疯了几天

  • -1

    Eclipse Juno可能还不完全兼容Apache Tomcat 7 . 使用Tomcat 6进行安装和配置 . 简单 .

相关问题