본문 바로가기
JavaWeb

[빌드오류] Access restriction: The type QName is not accessible due to restriction on required library

by 캡틴노랑이 2015. 9. 7.
반응형

 

http://stackoverflow.com/questions/860187/access-restriction-on-class-due-to-restriction-on-required-library-rt-jar 

 

 

There's another solution that also works. I found it on this forum:

  1. Go to the Build Path settings in the project properties.
  2. Remove the JRE System Library
  3. Add it back; Select "Add Library" and select the JRE System Library. The default worked for me.

This works because you have multiple classes in different jar files. Removing and re-adding the jre lib will make the right classes be first. If you want a fundamental solution make sure you exclude the jar files with the same classes.

for me i have: javax.xml.soap.SOAPPart in 3 different jars: axis-saaj-1.4.jar saaj-api-1.3.jar and the rt.jar

반응형

'JavaWeb' 카테고리의 다른 글

[JSP]useBean  (0) 2015.09.07
[JSP] include  (0) 2015.09.07
문자열 포맷  (0) 2015.09.07
[JSP] 자주 쓸만한 것들.  (0) 2015.09.07
파일 읽기  (0) 2015.09.07

댓글