eclipse tomcat 7.0 - eclipse

I'm trying to set up an Apache Tomcat 7.0 server in Eclipse, but I can't get the wizard to let me create it. My NEXT button won't highlight after I select Tomcat v7.0 like so:
I don't have the same problem trying to create any other version of Tomcat, just v7.0:
Info about my system:
-I've had it up and running previously, but had to go through a reboot with my system, Eclipse was untouched as it was on a different HDD
-I've reinstalled Tomcat 7.0 twice, once to the drive containing this particular Eclipse Workspace, and once to my main OS drive, both to no avail.
Can anyone tell me what I did wrong here or what's going on here?
Thank you very much.

In your eclipse menu go to
window > server > runtime environments > hit add > select tomcat 7 > hit next
press browse and navigate to the installation directory
and finish. Will solve this issue.

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

1.Close Eclipse
2.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
3.Restart Eclipse

Related

Unable to see server location while installing apache in eclipse

I am trying to install Apache tomcat in eclipse. When I am doing New-> Server, I am getting the following window
After clicking on next, It is not asking for Tomcat installation directory and I am not able to run it. Please help
Probably you were installed Tomcat and have deleted manually. You have two options:
delete or change your workspace address in Eclipse and then try to install Tomcat again. It will work.
delete the Tomcat configuration files from workspace folder as following:
Close your Eclipse
got to {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings
delete these files
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
start Eclipse again
install Tomcat again
enter image description here

Installation of Apache Tomcat Server Issue on Eclipse

I was trying to add Tomcat 7 in my Eclipse on Mac OS X. When I click “Add new server” in Eclipse and select “Tomcat v7.0 Server”, the field “Server Name” is blank and I cannot type in anything in that textbox.
What I did before is I deleted a Tomcat 7 server from Eclipse and I was trying to reinstall Tomcat 7. But it doesn’t allow me to type anything in that textbox and I cannot proceed to the “Next” button.
Does anyone have a clue what's going on.
You are facing a problem which is a bug in eclipse. Try following, it should work:
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

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.

Eclipse Tomcat Plugin - Getting Tomcat 7

I want to update my Eclipse so that I can associate projects with Tomcat 7. Currently, when I go to Window > Preferences > Tomcat, I get the following.
I originally thought it was a Eclipse version issue and I'd have to update. But I have Indigo and a friend of mine has Helios (older) and he has the Tomcat 7 option.
Then I thought the Tomcat feature might have been a plugin. So I tried Help > Check for Updates, but there were no updates.
Does anyone know how to get Version 7.x to appear?
Finally figured it out.
Close Eclipse.
Go here and download the latest zip file to get the plugin. Inside will be a folder called com.sysdeo.eclipse.tomcat_v.v.v (v.v.v depends on which zip version you downloaded).
Look inside your eclipse/plugins folder and delete the old com.sysdeo.eclipse.tomcat_v.v.v file.
Copy the new com.sysdeo.eclipse.tomcat_v.v.v file (from the zip) into the eclipse/plugins folder.
Restart Eclipse.
And there you go :)

Eclipse Juno Tomcat 6 Remote Host Not Supported

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.