-
Access restriction: The method 'ServletRequest.getRemoteAddr()' is not APIWEB/JSP 2018. 9. 14. 16:23
[오류 메세지]
Multiple annotations found at this line:
- Access restriction: The method 'ServletRequest.getRemoteAddr()' is not API (restriction on
required library 'C:\Program Files\Java\jre1.8.0_181\lib\ext\servlet-api.jar')
- Access restriction: The method 'ServletRequest.getRemoteAddr()' is not API (restriction on
required library 'C:\Program Files\Java\jre1.8.0_181\lib\ext\servlet-api.jar')
[사용환경]
이클립스 neon
자바 jdk 1.9
아파치 8.0
[해결방안]
1. 이클립스에서 Project - Properties에 들어가서 Java Build Path에 있는 Libraries 탭에서 JRE System Library를 remove한다.
2. Add Library를 클릭하여 JRE System Library를 다시 추가한다.'WEB > JSP' 카테고리의 다른 글
jsp 경로를 이동하면 파일 다운로드 받는 방법 (0) 2018.10.23 JSP 에러페이지 (0) 2018.10.23 web.xml 파일이 없을때 해결법 (1) 2018.10.23 eclipse에서 mysql 연동 에러 문제 (0) 2018.10.19 if(session.getAttribute("userId") != null || session.getAttribute("userId") !="" ) 사용시 에러 (0) 2018.10.05 댓글