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

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.

Related

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

Right click in eclipse is not working?

My right click is not working in eclipse.I tried to work on servlet so i downloaded javaEE to work and used yesterday (Aug 13 2014) after i didn't used my eclipse which I am using regularly today i started working on the android in my regular eclipse.When i started working on the project my right click not working in package explorer. Also in Window --> show view showing blank.
These are the different trials i have done.
restarting the eclipse.
Change the work space.
restarted the computer.
But the problem is not solved.
Restart Eclipse with a "-clean"
Open a command prompt (click Start, Run... enter "cmd"), then go to the directory where you have Eclipse installed with "cd ", and then run "eclipse -clean".
I had similar symptoms recently. Turned out it was caused by the Subversion server being unavailable - once that was restarted I was able to right-click. My environment was Eclipse Luna with Subclipse.
So worth checking that any connected source control systems are operational. Hope that helps.
You may try clearing SOCKS proxy if your company using a proxy server.
Window → Preferences → Network Connections → Select SOCKS → Click on
Clear (Make sure you have proxy server listed in it).
Turn on error view in Eclipse: Window -> Show View -> Other. Search for Error
There you'll most likely find errors in the log, which will tell you which plugin prevents the menu from opening.
For example, I found:
java.lang.NullPointerException at
de.anbos.eclipse.easyshell.plugin.commands.DefineCommands.createContributionItems(DefineCommands.java:49)
at
org.eclipse.ui.internal.menus.ContributionFactoryGenerator.compute(ContributionFactoryGenerator.java:72)
at
org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord.mergeFactoryIntoModel(ContributionRecord.java:271)
Fixing EasyShell plugin config solved the problem for me
This happened to me, but only in the "SVN Repositories" window (so I couldn't check out anything). Using the right-click button on the keyboard worked (had to connect an external keyboard with such a button to my laptop).
I had this problem with STS and I went to the STS folder where I started STS and opened eclipse.exe instead of STS and this fixed the problem. I was able to use the Right click for my project.
This fixed my problem "temporarily ONLY"
I was facing the same issue and went to Preferences-> Network Connections and changed the Active Provider from Direct to Manual. This resolved my issue.
I had the similar problem.
Later I found that I have installed one plugin name "ContextQuickies" from market place which is causing this problem.
I have uninstalled it and restarted eclipse which solved my problem.
My environment was Eclipse Kepler.
Steps to uninstall:
Help->Install Software->Already Installed -> This will open new window from there you can Uninstall the plugin and restart.
Hope this helps
I just ran into this issue. I simply restarted eclipse since I had it open for days.

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.

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.

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=