본문 바로가기
Web Programming/JAVA MVC

이클립스 다이나믹 웹 프로젝트 / dynamic Web Progect 생성 / JSP 만들기 / 에러 The superclass "javax.servlet.http.HttpServlet" was not found on the Java

by hyeon-H 2021. 11. 7.
728x90
반응형

다시 공부를 하기로 마음 먹고 이클립스 다이나믹 웹 프로젝트(Dynamic Web Project)를 사용해서
인스타그램의 화면 최대한 똑같이 만들어 볼 예정이다.


1. New project

프로젝트를 생성 후
첫화면으로 로그인 페이지를 만들기 위해서 JSP를 추가했는데..

처음부터 에러와 마주쳤다..

The superclass "javax.servlet.http.HttpServlet" was not found on the Java 

에러 내용을 찾아보니 톰켓이 없어서 그런다고..

톰캣이 어디갔는지 보이지 않아 다시 다운받기로 결정

톰캣의 새로운 버전을 설치하면서 JDK도 새롭게 다시 설치하였다.

그래도 오류 빨간줄이 없어지지 않아서 검색후 해결방법을 찾아냈다.

 

이클립스 에러해결 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

1: 프로젝트 우클릭 -> Properties 2: Project Facets -> Java -> Runtimes -> Tomcat 체크 -> Apply Tomcat 체크해도 Apply가 안될 때 -> Tomcat 삭제 후 재설치 (eclipse 상에서 delete) -> 다른 버전의 Tomca..

code-nen.tistory.com

 

그리고 톰캣을 실행 후 또 다른 에러가 발생했다.

Launching tomcat v10.0 server at localhost' has encountred a problem.

serveral ports (8005,8090) required by tomcat v10.0 server at localhost are already in use. the server may already be running in another process, or a system process may be using the port. To start this server you will need yo stop the other process or change the port number(s).

Several ports (8005, 8090) required by Tomcat v10.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

학원을 다닐때에도 강사님이 프로그램을 처음 설치하고 경로를 잡고....시작하는데 과정이 복잡하고 힘들어 실무에서도 혼이 난다고 했었따.....

예전에 학원에서도 많이 보던 창이였다 이미 사용중인 port번호 인것이다.

해결 방법 

1. 시작메뉴에서 cmd 검색 실행

2. netstat -ano 검색

3. 문제가 되는 포트번호 로컬주소의 PID 확인!

4. taskkill /f /pid pid번호  ex) taskkill /f /pid 2815

띄어쓰기를 확인해가면서 해보자..번호를 바꿔서 실행하는 방법도 있지만 꼭 이 방법으로 해결하고 싶었다.

 

 

톰캣 에러(Tomcat Error) Several ports (8005, 8088) required by Tomcat v8.5 Server at localhost are already in use. The serve

Several ports (8005, 8088) required by Tomcat v8.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start t..

shinye0213.tistory.com

 

 

이클립스 실행하여 톰캣등록 후, JSP 화면 띄워보기

요즘 프로젝트 진행을 하여 정신없이 개발만하다보니, 오랫만에 포스팅이네요. 이번 포스팅을 마지막으로 JSP 페이지 출력하는 방법에 대해서 마무리를 하도록 하겠습니다. Perspective 모드를 Ja

mongodev.tistory.com

 

그리고 JSP파일을 실행해본 결과

 

드디어...이제 다음편에서는 인스타그램의 첫 화면인 로그인 페이지를 만들어 보겠습니다.

728x90
반응형