Eclipse Tomcat7 Server Doesnt support Remote Host

前端 未结 8 609
予麋鹿
予麋鹿 2021-01-07 22:18

My Problem is: When I try to add my Tomcat7 to Eclipse EE as a server, I get an error message that says:

\"The currently selected server type does no

相关标签:
8条回答
  • 2021-01-07 22:28

    Try to delete the temp file in your workspace. ...workspace\ .metadata.plugins\org.eclipse.wst.server.core\tmp-data

    then make a new server with a new server runtime environment.

    0 讨论(0)
  • 2021-01-07 22:31

    i also faced this issue .my case is "i already have created tomcat server and my tomcat server(8) is installation location is

    "c:/xyz/apache-tomcat-8.0.28"

    then i changed my tomcat server(8) location to another place `

    "c:/abc/apache-tomcat-8.0.28"

    `after that when i try to create new tomcat server 8.then it showing this error i solved by changing server runtime Environments in eclipse

    preferences => server => Runtime Environments

    then select your tomcat type .you can remove the server and add new server runtime Environment or edit existing one by giving correct tomcat installation path.then it won't give "The currently selected server type does not support remote hosts" error.

    0 讨论(0)
  • 2021-01-07 22:41

    As you can see in the image the "server host name" field is "localhost" which is correct parameter value.

    Solution:- in your case it would have been showing something like "cloud" or something else. please make sure that you pass correct value which is "localhost".

    0 讨论(0)
  • 2021-01-07 22:44

    The Tomcat support in Eclipse is meant for running Tomcat locally on your own machine. That's necessary because Eclipse deploys web modules to Tomcat by copying them into a folder in the Tomcat installation. It can't deploy things to a remote Tomcat server because it can't copy files into a folder on a different computer.

    Typically you'd run Tomcat on your own computer for development, and then (manually) deploy your application to a remote server when you want to make it available to the rest of the world.

    0 讨论(0)
  • 2021-01-07 22:50

    While defining new Server in eclipse

    In server host name box use localhost instead of cloud.

    0 讨论(0)
  • 2021-01-07 22:51

    When you add Tomcat to Eclipse as a server runtime, don't forget to check "Create a new local server".

    0 讨论(0)
提交回复
热议问题