삭제 한 것과 같은 이름의 서블릿을 만들려고 할 때이 오류가 발생합니다. 원래 하나는 어디에도 없었으므로 다시 시작하기 위해 삭제했습니다. 프로젝트 트리가 아니라 실제 폴더가 아니기 때문에 이것이 작동하지 않는 이유를 이해할 수 없습니다. 나는 프로젝트를 새로 고쳤고 종료하고 Eclipse를 다시 시작했다.서블릿 표시 이름이 이미 있습니다.
도움을 주시면 감사하겠습니다. 이게 이클립스의 특이한 점인가, 아니면해야 할 일이 있을까요? 내 web.xml 파일은 다음과 같습니다.
<?xml version="1.0" encoding="UTF-8"?>
<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">
<display-name>first</display-name>
<welcome-file-list>
<welcome-file>home.html</welcome-file>
<welcome-file>contactus.html</welcome-file>
<welcome-file>adminlog.html</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>login</servlet-name>
<servlet-class>login</servlet-class>
</servlet>
<servlet>
<servlet-name>adlogin</servlet-name>
<servlet-class>adlogin</servlet-class>
</servlet>
</web-app>
web.xml을 확인 했습니까? –
배치 시간에 참조되는 정확한 오류 메시지 & web.xml을 게시하십시오. –