[이클립스] Server - publishing 없이 서버 구동하기
Serve modules without publishing 를 체크하고 에러 날 때 해결책
Servers 에서 설정한 톰켓서버 더블클릭 하고...
Server modules without publishing 체크한 위에 보면...
Open launch configuration 이라고 있는데... 클릭해서 창을 띄운 후
Classpath 탭에 Bootstrap Entries 에서 Add External JARs... 로
톰캣 디렉토리 lib 폴더에 있는 servlet-api.jar 를 추가 하니까...
해결(?) 되네요...
[출처] https://okky.kr/article/171143
Classpath 탭에 Bootstrap Entries 에서 Add External JARs... 로
톰캣 디렉토리 lib 폴더에 있는 다음 파일들을 추가
1) servlet-api.jar
2) el-api.jar
3) jsp-api.jar
Eclipse에서 Tomcat 8 Server를 등록하고 Serve modules without publishing 옵션을 체크하고 Run 시키고 jstl core tag가 있는 페이지를 호출하면 다음과 같은 에러가 난다.
/WEB-INF/jsp/view/login.jsp (line: [1], column: [1]) The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application
Eclipse의 Tomcat 8 Server Overview의 Open launch configuration에서 Classpath 항목에서 javax.servlet.jsp.jstl-1.2.2.jar 파일을 추가해 봤지만 계속 동일한 에러가 났다.
javax.servlet.jsp.jstl-1.2.2.jar 파일을 Web Application의 /WEB-INF/lib 폴더에 넣으니 제대로 동작했다.
아마도 Tomcat 8 이나 Eclipse WTP에서 버그가 있는 것일까?
< Migrating from Tomcat 7 to 8 in Eclipse WTP: The absolute uri: http://java.sun.com/jstl/core cannot be resolved >