Fixing ‘file’ access is not allowed due to restriction set by the accessExternalSchema property in Java 8

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.