Eclipse Juno Tomcat 6 Remote Host Not Supported - eclipse

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

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)

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!

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.

Related

Eclipse - Add Server - Next Button is disabled when I select a specific Tomcat (e.g tomcat8)

I open Servers view, right click and go to new->server menu.
When I select Tomcat 6 or Tomcat 7 the next button works well however when I select Tomcat 8 the next button is greyed out.
How can I add a tomcat 8 in this case?
I'm using Ubuntu 14.04 and Eclipse mars2 and the accepted answer for this question didn't work for me. I tried everthing from installing new software (extensions, unnecessary because mars already have native support for tomcat8), and adding/removing runtime environments without success.
It is a bug into Eclipse.
Here is the workaround that worked for me:
Close Eclipse
In {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings delete the following two files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
Restart Eclipse
Source: Eclipse add Tomcat 7 blank server name
Eventhough it says tomcat 7, it worked for the same problem with tomcat 8 too.
There are a few resource on the web about this problem but no answer on SO.
If you were never add a tomcat8 to eclipse there would be no problem just like tomcat7 or tomcat6. But there is a setting about tomcat8 and that is wrong. In that menu there is no option to reconfigure settings.
Just go to Window->Preferences->Server->Runtime Environments and Remove or Edit the old, wrong settings. Then you will be able to add tomcat8 too!
Ref: http://www.codejava.net/servers/tomcat/how-to-add-tomcat-server-in-eclipse-ide
It is a bug in Eclipse.
You can follow following steps for overcome this problem.
Close Eclipse
Go {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings
delete the following two files:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
Restart Eclipse
First try removing/editing respective server at
Window->Preferences->Server->Runtime Environments
then go ahead adding new server, Even after deleting old setup on Window->Preferences->Server->Runtime Environments - If you still have this issue while on Define a New Server from servers tab of eclipse, now try adding tomcat at Window->Preferences->Server->Runtime Environments as we've deleted earlier & then go to Define a New Server from servers tab to create new server, this should work.
I had this issue too, and it was caused by unsufficient file-access rights to the Tomcat server installation directory.
Make sure you have read-access to all files within the Tomcat installation directory you configured in Eclipse (this can be an issue for example if you use the standard tomcat installed in Ubuntu, if you do not belong to the tomcat8 group).
Just go to Window->Preferences->Server->Runtime Environments and Remove the server.
Try to add the server from there only. You will see another folder has been created with the same name.
Provide valid path. Restart eclipse and add server from server console.
Hope it will help..
Go to
Window->Preferences->Server->Runtime Environments
remove tomcat configuration and save.
Go to server view( Window -> show view ->server)
configure the tomcat server again.

sts 3.6.1: default server is not added to workspace; cannot select tomcat7 for Pivotal 3.0

When I was using STS 3.6.0 a default 'Servers' folder (Vmware vFabric v2.5 - v.2.9) was always added to any new workspace I created.
Since installing STS 3.6.1 I am no longer seeing a default 'Server' being attached to the workspace.
It appears that STS 3.6.1 is now bundling Pivotal tc Server v3.0, which appears to favor Tomcat 8 for the default underlying binary (this requires Java SE 7, but I need to use Java SE 6(which is my workspace default))
So my best guess as to why the automatic addition of the 'Servers' folder is not occurring, is that I don't have Java SE7 set as my workspace default, but I'm a little surprised that Tomcat 8 is being considered the default binary for tc Server;
I am also having issues manually adding a server for my workspace
(e.g. New->Server->Pivotal tcServer v3.0)
After I select the location for the 'Pivotal tcServer v3.0' the default Tomcat version selected is Tomcat 8.0.9.B.RELEASE. I get the following warning after this selection:
"Tomcat 8 requires Java SE7 or later. Change the JRE to one that meets this requirement"
Understood, but...
When I select Tomcat 7.0.55.A.RELEASE as the Version, I still see the same message and I am unable to proceed with adding the server.(Its my understanding that Tomcat 7.x is supported by Java SE6).
This is unexpected behavior in my opinion since my workspace default JRE supports Tomcat 7. Is there anyway around this issue?
From the main menu, open Window -> Preferences.
Then, navigate to the Server -> Runtime Environments page.
At the top of the list you should be able to see Pivotal tc Server Developer Edition (Runtime). Select it and then press "Edit..." button.
In the dialog that appears, select your JRE and Tomcat versions from the appropriate dropdowns. Press the "Finish" button to save your changes and create a new server instance.
Start the created server and you'll see that Tomcat 7.0.55 starts.
Please raise a defect if you feel that 7.0.55 should be the default rather than 8.x.
Thanks for reporting this. That was a bug indeed. The wizard page should be revalidated if tomcat version has been changed. This should be fixed now. Also some support for using various versions of VMs available via Eclipse's Installed JREs (i.e. JRE's different from Java Home on the system).
Please try updating your tc server eclipse integration from this update: http://dist.springsource.com/snapshot/TOOLS/eclipse-integration-tcserver/nightly I think the fix is already available in the latest build.

Tomcat server doesn't reflect in my IDE

I downloaded and installed tomcat 6.0. I am using rational application developer. I am not able to see my tomcat server in my IDE at all. I tried server->new-> and windows->preferences->server->server runtime environment but I don't find it here either. Any idea where I am going wrong or which step i missed? I know i installed my tomcat properly because http:localhost:8080 works properly.
thanks in advance!!
UPDATE
Will a trial license affect my servers in any way? Like only a specific server you can use with the IDE while u have a trial license or something like that?
UPDATE
when I click Add, Tomcat isn't there in the list of options for me to select and that is where my problem arises. I tried clicking on search and the selecting the tomcat folder but i get an error that states - No new server runtime found
I had the same issue and I followed these steps to solve it in Eclipse Helios:
Help -> Install New Software
Choose "Helios - http://download.eclipse.org/releases/helios" site
Expand "Web, XML, and Java EE Development"
Check JST Server Adapters (version 3.2.2)
Please change the download URL in step 2 according to the Eclipse version which you are using.
Hope this helps.

Adding Tomcat into Eclipse

I am trying to add a tomcat server into runtime environments. I successfully installed tomcat. I already have Java EE eclipse, BUT after I click search under Window->Preferences->Server->Runtime environments and select apache tomcat and then click OK a window with the following text popups: No new server runtime environments were found. What am I doing wrong? I thought after switching to Java EE and installing tomcat I will be able to add the RE... Many thanks in advance!
After trying to add the RE: no tomcat servers list!!!
after trying to search (C:/Program Files/Apache...)
and finally the popup after choosing "apache software foundation" and hitting ok
You need to specify the server runtime in that window. From the browse button, select the base path of the directory where you have installed tomcat and hit next. Hopefully that should do it. There should also be an option to download and install, if you have internet connectivity.
If you dont see any server types in the 'add new Server' dialog, then you are probably missing the server adapters. In which case click on the 'Download additional server adapters' link. This will allow you to pick and download 'tomcat server adapter'. Once that is done.
Some screenshots etc would also help in understanding and helping you resolve your issue.
Hope this helps.
Run time environment click on add button select Apache tomcat-> Click on next button -> Browse the Tomcat 7.0 path -> Finish.
Because you are not having JST server adapters...you are not able to see installed apache in eclipse ....just install this through 'install new software' in help menu ....
You are most likely are missing the Eclipse Tomcat Server Feature. You can either try reinstalling all of the WTP plugins or maybe install Spring STS which I'm sure has the plugin installed.

NetBeans IDE 7.0 <Missing Java EE Server>

I created my Java EE Project with GlassFish server and Java EE 6. It was working good when i was created the project, but i closed my netbeans(there wasn't any fault just closed the NetBeans) and started my NetBeans.
Then problem on the title has faced. And i re-installed my NetBeans
many times. So i can't solve it. PLEASE HELP ME! NETBEANS GEEKS!
I'm not sure if you solved this already but I had this same problem just now. All I did to fix it was select a new server from the list provided when you click on the 'resolve this issue' after right-clicking on your web project. I selected apache tomcat, not the bundled version but the one I installed onto my computer and setup myself. The project then accepted that as the proper server to use and ran just fine.
Right click on the project and it gives at the bottom an option to resolve Server references, so once you click there, it gives the option to add the server (tomcat or glassfish), that worked for me.
Go to the following place in your project's directory:
/home/<path-to-your-project>/nbproject/private
or
c:\<path-to-your-project>\nbproject\private
and check if the paths to GlassFish are correct in the private.properties file for the following properties:
j2ee.server.domain=
j2ee.server.home=
j2ee.server.instance=
j2ee.server.middleware=