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

user1031946 picture user1031946 · Nov 6, 2011 · Viewed 73.9k times · Source

Setup:

  • Eclipse 3.7 + the WEB tools from the indigo update site
  • Tomcat7
  • Ubuntu

Problem:

When I try to add a new Tomcat 7 server in the server perspective in Eclipse I get the following error:

"Cannot create a server using the selected type" 

How do I solve this?

Answer

aleroot picture aleroot · Nov 6, 2011

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.