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:
- Go to
Window–>Preferences–>Server–>Runtime Environments
and fix the broken path/link for the server. - Rename the
org.eclipse.jst.server.tomcat.core.prefs
toorg.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
- Rename the
org.eclipse.wst.server.core.prefs
toorg.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.