Eclipse Tomcat7 Server Doesnt support Remote Host

隐身守侯 提交于 2019-12-09 02:36:26

问题


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 not support remote hosts"

Does anyone know how to solve this problem? Or how to enable remote hosts in Tomcat?


回答1:


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.




回答2:


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".




回答3:


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.




回答4:


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




回答5:


While defining new Server in eclipse

In server host name box use localhost instead of cloud.




回答6:


for me I had renamed the tomcat folder after installing and was getting this error message with STS and Tomcat 6. See bobthemagicman's answer here: Eclipse Juno Tomcat 6 Remote Host Not Supported




回答7:


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.




回答8:


Just change Server's Host Name to LOCALHOST

See here



来源:https://stackoverflow.com/questions/9444893/eclipse-tomcat7-server-doesnt-support-remote-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!