Eclipse 3.7 (Indigo) + Tomcat7 --- Cannot create a server using the selected type

Solution 1:

This is a known issue.To resolve this error, try one or all of the following:

  1. Go to Window–>Preferences–>Server–>Runtime Environments and fix the broken path/link for the server.
  2. Rename the org.eclipse.jst.server.tomcat.core.prefs to org.eclipse.jst.server.tomcat.core.prefs.bak (or you can delete this file). This file can be found at \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
  3. Rename the org.eclipse.wst.server.core.prefs to org.eclipse.wst.server.core.prefs.bak (or delete the file). This file also can be found at the same location as above.

Solution 2:

A different resolution of the same problem that worked for me. I share it here it might be helpful for someone.

I have - Eclipse Juno - Tomcat 7 - Windows 7

This is what I did

Eclipse > Window > Preferences > Installed JREs and I've got jre7 added and selected here. So I added jre6 by pressing Add button(If not installed or you ran a java update, just download and install jre6). And select jre6 instead of jre7.

Now go to Eclipse > Window > Preferences > Server > Runtime Environment > Press Add and add Tomcat 7.

You're done now.