에러 회고
[Springboot, Jsp] org.apache.jasper.JasperException: The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application 에러
Unagi_zoso
2022. 9. 9. 18:13
사건 발단
저는 Springboot 2.7.3, Gradle 7.5 환경에서 작업하였습니다.
jsp파일을 Spring security 라이브러리와 같이 쓰려하니
<%@ include file="../layout/header.jsp"%>
jsp파일의 다음과 같은 다른 파일을 include하는 문에서 다음과 같은 에러가 등장하였습니다.
org.apache.jasper.JasperException: The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application
해결 방안
Gradle에 다음과 같은 의존성을 추가하니 해결되었습니다.
implementation 'org.springframework.security:spring-security-taglibs'
향후 방침, 행동
문제는 어느 jsp파일에서 다른 jsp파일을 include할 때 권한문제로 인하여 발생한 것 보다는,
단순 파일 위치를 찾지 못해 발생한 것인가 생각이 들었습니다.
또는 Security 라이브러리를 사용하였다는 것 만으로
필터에서 작업이 발생하고 jsp파일의 include에 간섭을 하여 jsp 태그 라이브러리가
Security 태그 라이브러리에게 주도권을 빼았긴 듯 느껴지기도 하였습니다.
추가적으로 알게되는 부분이 있다면 내용에 추가하겠습니다.