IntelliJ를 막 쓰게 됐는데 jsp 수정하고 새로고침하는데 반영이 안되고 서버를 재구동해야 반영되었다.

 

  1. 서버 Edit configrations 들어감
  2. Deployment > Deploy at the server startup 에서 Edit Artifact 클릭. (연필모양)
  3. war exploed > output directory 경로를 src/main/webapp으로 수정한다.

 

Several ports (8005, 80, 8009) 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 this server you will need to stop the other process or change the port number(s). 

 

프로젝트를 실행하니 이미 사용중인 포트라 서버가 켜지지 않는다고 한다

 

1. 작업관리자에서 javaw.exe / tomcat.exe 을 끈다 -> 는 없음

2. 시작프로그램에 Apache Commons Daemon Service Manager프로그램을 찾는다

-> 해당 프로그램의 설치 폴더로 간다

 

3. 서비스가 실행되어있음 Stop하고 Startup type을 Disabled로 바꾸면 앞으로 수동으로 켜질일 없음

학원에서 실습했던 프로젝트를 깃허브로 가져왔더니 대참사가 일어났다

 

 

 

 

Multiple annotations found at this line:
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java 
 Build Path

 

1) tomcat 버전이 달라서 생긴 에러

다른 컴퓨터는 tomcat-8.5.45버전을 이용하였는데 집에서는 tomcat-8.5.46버전이었음

 

 

window -> preferences >server -> Runtime Environment -> Add 

톰캣을 새로 설치하고 서버를 생성한다

 

 

프로젝트 우클릭 Properties -> Project Facets -> Runtimes -> Apply

 

 

 

 

 

 

 

Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"

 

 

2) jstl 라이브러리 에러

jstl은 jsp를 위한 태그 라이브러리로 별도 설치가 필요하다

 

 

http://tomcat.apache.org/taglibs/standard/

 

본인은 1.2.5버전 받음

 

 

 

프로젝트 WebContent > WEB-INF > lib 폴더에 넣음

 

 

3) jre 버전 다름

 

 프로젝트 우클릭 Build Path > Configure Build Path 클릭

 

클릭하여 버전을 맞춰준다

+ Recent posts