Eclipse Juno Tomcat 6 Remote Host Not Supported

霸气de小男生 提交于 2019-12-24 10:30:30

问题


I am trying to add a tomcat 6 server in my eclipse juno but I am getting this error:

The currently selected server type does not support remote hosts

Before juno I had galileo on the same machine and I was able to add tomcat 6 successfully in it without any problems.

I searched on the internet before asking but the only relevant link i got was this: Eclipse Tomcat7 Server Doesnt support Remote Host and it doesn't help much.

Pls help Thanks


回答1:


I had the same problem with Tomcat 7 and I solved it by importing a Tomcat 7 project from another workspace which already had the server set up. Additionally I added a Runtime Environment for Apache Tomcat 7 (Window > Preferences > Server > Runtime Environments > Add)




回答2:


I recently had the same problem and it was because I had a previous version of tomcat installed, upgraded to a newer version, deleted to old one, and never changed the runtime environment in Eclipse. It's kind of a poor error message because it doesn't state the true nature of the problem but anyway... The easiest way to fix this is:

Open Eclipse, right click on the workspace and select New Server.

Once you are at the Define New Server wizard click on Apache and select Tomcat 6. This is where you should see the error The currently selected server type does not support remote hosts. Now below server runtime environment click Configure Runtime Environments and new popup will open. You should see Apache Tomcat v6.0 in the preferences window. Select this and click edit to the right.

You will have a new popup titled Edit Server Runtime Environment. Under Tomcat Installation Directory you can browse to the location of the tomcat directory. Assuming you have downloaded Tomcat and put it at the top level of your C: drive you should have something like this: C:\apache-tomcat-6.0.36. Click finish and you should be good to go. Let us know how it works out for you!




回答3:


I also had the same problem and tried to follow @dbk's solution but I didn't have the "Configure Runtime Environments" in the wizard screen. For me I needed to go to preferences->server->run time environments where I had incorrectly configured runtime environments. So to be clear if you have runtime environments that are not configured correctly you will have to edit them first.



来源:https://stackoverflow.com/questions/13063456/eclipse-juno-tomcat-6-remote-host-not-supported

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