title: Servlet Display Name Already Exists
body: <p>I'm getting this error when trying to create a servlet of the same name as one I deleted. The original one was going nowhere so i deleted it to start again, it's not in the project tree and not in the physical folder, so I can't understand why this is not working. I did refresh the project and also shut down and restarted Eclipse.</p>
  
  <p>Any help appreciated. Is this some quirk of Eclipse or is there something I have to do? 
  Here is my web.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
   &lt;display-name&gt;first&lt;/display-name&gt;
   &lt;welcome-file-list&gt;
   &lt;welcome-file&gt;home.html&lt;/welcome-file&gt;
   &lt;welcome-file&gt;contactus.html&lt;/welcome-file&gt;
   &lt;welcome-file&gt;adminlog.html&lt;/welcome-file&gt;
   &lt;/welcome-file-list&gt;
   &lt;servlet&gt;
   &lt;servlet-name&gt;login&lt;/servlet-name&gt;
   &lt;servlet-class&gt;login&lt;/servlet-class&gt;
   &lt;/servlet&gt;
   &lt;servlet&gt;
   &lt;servlet-name&gt;adlogin&lt;/servlet-name&gt;
   &lt;servlet-class&gt;adlogin&lt;/servlet-class&gt;
   &lt;/servlet&gt;
   &lt;/web-app&gt;
  </code></pre>