1 . To fix the error ‘Cannot create a server using the selected type’ run the following:

cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
rm org.eclipse.jst.server.tomcat.core.prefs
rm org.eclipse.wst.server.core.prefs

2 . Once you do this, another error

‘Could not load the Tomcat server configuration at /usr/share/tomcat7/conf. The configuration may be corrupt or incomplete /usr/share/tomcat7/conf/catalina.policy (No such file or directory)’

So to fix this run the following commands:

3 . Restart server and Eclipse

4 . Add new server

Choose the Servers under the Server category;
Create new server wizard;

Choose Apache / Tomcat v7.0 Server and press Next;
Enter /usr/share/tomcat7 into the Tomcat installation directory and press Next;
Select your project on the left pane under “Available” and press Add> to move it to the right pane under Configured; press Finish;
Eclipse need to start the server, and to do that, first, it has to stop the one running in background.

If you don’t have to automatically start at boot, we can use the following command

If, during server start, you receive warnings like:

You may also need to run the following: