After installing Java 8, I faced this issue ‘schema_reference: Failed to read schema document ‘MyWebservice.xsd_1.xsd’, because ‘file’ access is not allowed due to restriction set by the accessExternalSchema property’ when i tried to create web service client for my Java EE Webservice in Netbeans. Upon investigation i found that the error is happening for all java 8 users who is working with web service clients. to fix this error, please do the following.
Please create a file named ‘jaxp.properties
‘ and paste the below content to it.
javax.xml.accessExternalSchema = all
save the file to your jdk installation directory/jre/lib folder.
that’s it. the issue will be fixed now. happy coding.
Thank you very much. I had the same issue and was able to fix it following your steps.
Dear Nerunja,
Thanks for the feedback, good to know that the blog helped you in some way.
I had the jaxp.properties in jdk installation directory/jre/. After reading your post I moved it into the lib dir and it worked! Thanks!
Thank you So much, it fixed.
Thank you, it does the trick 🙂
Hey there, I think your blog might be having browser compatibility issues.
When I look at your blog site in Safari, it looks fine but
when opening in Internet Explorer, it has some overlapping.
I just wanted to give you a quick heads up! Other
then that, terrific blog!
Many Thanks!!. It helped me as well.
Works like a charm!! Thank you 🙂
it’s fix for me too.
thanks.
I tried this with no luck. Still seeing same access error. Using jdk-8u131 and IntelliJ IDEA 2016.3.4 . All i’m trying to do is create a java proxy for a remote service from wsdl. I’ve tried Netbeans, NEON (EE) and IntelliJIDEA, i can’t believe how complex and convoluted this process is… none of the “wizards” seem to work as suggested/described. Any suggestions would be appreciated.
I resolved this by backing off of JDK 8 and going back to 7.
Thanks, it worked !!!
I’m getting this error while doing Gradle Build. Tried this..Not working 🙁
Excelent!!! Thanks for that!!
Thanks for the precise fixing skills for the above issue which i am facing for more than 30 minutes.
Hats up to you dude
Bingo!
Worked for me.
Thanks fir sharing