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

Setup:

  • Eclipse 3.7 + WEB tools from 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 to solve this?

+68
eclipse tomcat7 eclipse-indigo
Nov 06 2018-11-11T00: 00Z
source share
10 answers

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

  • Go to Window–>Preferences–>Server–>Runtime Environments and fix the broken path / link for the server.
  • Rename 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 in \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings
  • Rename org.eclipse.wst.server.core.prefs to org.eclipse.wst.server.core.prefs.bak (or delete the file). This file can also be found in the same place as above.
+130
Nov 06 '11 at 9:11
source share

A different solution to the same problem that worked for me. I share it here, it may be useful for someone.

I have - Eclipse Juno - Tomcat 7 - Windows 7

This is what I did

Eclipse> Window> Preferences> Installed JREs, and I added jre7 and selected here. Therefore, I added jre6 by clicking the "Add" button (if not installed or you started the java update, just download and install jre6). And select jre6 instead of jre7.

Now go to Eclipse> Window> Settings> Server> Runtime> Click Add and add Tomcat 7.

Now everything is ready.

+3
Nov 16
source share

After trying to solve aleroot without success, VonC commented on the issue that it fixed it for me. So, follow the suggested solution here if you hit the wall. Remember to subsequently remove the old Tomcat configuration from the runtime.

+1
Dec 22 '13 at 6:33
source share

I had two tomcat 7 runtime configurations added to the Runtime Server Configurations tab. I deleted the duplicate and set the path to the only tomcat 7 that was installed on my system under C:\Program Files\Apache Software Foundation\Tomcat 7.0 , and this solved my problem of adding a new server in the server tab.

  • Go to Window > Preferences > Server > Runtime Environments and update the server runtime environment path to change the broken path for the server by clicking Edit .
+1
Aug 03 '15 at 12:59 on
source share

None of the above solutions worked for me. None of the listed files exist in this place or anywhere else on my machine. I tried to back up all the files in the .settings folder and restart Eclipse, but still got the same error.

The only thing that worked was reinstalling Tomcat.

0
05 Oct '12 at 18:24
source share

The error occurs because the server is running on a different Java (TM) platform.

  • Launch Task Manager -> Processes -> Choose Java (TM)
  • Click End Processes.

After completing this procedure, you can add the server without any errors.

0
Nov 06
source share

I deleted the files mentioned above ... still no luck. On a whim, I decided to download and install NetBeans. I worked with a Postgres server and an Apache server, etc. In just a few minutes! No additional downloads, etc.

In any case, switching to Netbeans is what worked for me. Goodbye, Eclipse.

0
Jun 02 '13 at 2:28
source share

Another way is to delete the Servers directory if it has already been created. It worked for me.

0
Feb 05 '15 at 9:21
source share

After completing all the work steps mentioned in the answers of others, and even if they do not work,

Change eclipse, workspace and tomcat directory. [verified for Windows7 only]

I know that someone may say that this is not true, but the above step worked for me.

It took me 4 hours to find this brute force solution.

0
Feb 17 '16 at 11:26
source share

If you installed Tomcat 7 with apt-get on a Debian / Ubuntu system, the purest solution to this problem is to assign the user that Eclipse is working on to the tomcat7 group.

If, for example, the username is pippo , you just need to run:

 sudo adduser pippo tomcat7 

Note: you need to log out and log in for the changes to take effect.

-one
Mar 19 '13 at 16:29
source share



All Articles