반응형
Access restriction: The method getContentLength() from the type ServletRequest is not accessible due to restriction on required library /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ ext/servlet-api.jar |
위의 에러가 계속나와서 request, respons를 사용하면 에러표시가 계속 나타나서...
설정을 잘못해 주었나 계속 찾았는데 겨우 해결하였다.
해결 방법은 간단하다.
이클립스 Workspace의 Java → Compiler에서
Deprecated and restricted API의 Forbidden reference (access rules) 항목을
기본 'Erro'에서 'Ignore'로 바꾸고 OK를 누른다.
다시 *.jsp 파일을 띄우면
request, respons의 붉은 에러 표시가 사라져있는것을 확인 할 수 있다.
반응형
'JSP > JSP Error' 카테고리의 다른 글
[JSP] Control character in cookie value, consider BASE64 encoding your value (0) | 2012.05.23 |
---|---|
[JSP] Error : The server does not support version 3.0 of the J2EE Web module specification. (0) | 2012.02.08 |