발생 상황
# javax.servlet.jsp.PageContext cannot be resolved to a type
# javax.servlet.jsp.JspException cannot be resolved to a type
발생 이유
프로젝트에서 서버 환경을 설정해주지 않아서 발생하는 오류이다.
해결 방식
1. 오류가 발생한 프로젝트 우클릭 → Properties
2. Java Build Path → Add Library
3. Server Runtime 선택
4. 설정해둔 톰캣을 선택 후 Finish → Apply and Close
참고 글
오류해결∥Javax.servlet.jsp.PageContext cannot be resolved to a type
오랜만에 웹을 시작해보려고 새로운 이클립스 환경을 잡다가 발견한 오류다. 소포트웨어 개발만 하다가 JSP 파일을 만들어 구문을 쓰는데 아래 2가지 오류가 발생했다. # javax.servlet.jsp.PageContext ca
hunit.tistory.com
'오류 > Spring' 카테고리의 다른 글
OpenJDK 64-Bit Server VM warning (0) | 2024.03.18 |
---|---|
Server Tomcat v9.0 Server at localhost failed to start (0) | 2024.03.12 |
[빈 생성 에러] Error creating bean with name 'XXX' (0) | 2024.03.12 |
java.lang.ClassNotFoundException: javax.xml.bind.JAXBException (0) | 2024.03.12 |
Servlet.init() for servlet appServlet threw exception (0) | 2024.03.12 |