We are using web services in our project. And once we moved from Java 1.7 to Java 1.8, we started to get the error while building the web service client.
[WARNING] schema_reference: Failed to read schema document '?xsd=1', because 'http' access is not allowed due to restriction set by the accessExternalSchema property.
Easy Solution
And the solution to this issue was to create a a file jaxp.properties
in the /pathto/jdk1.8.0_111/jre/lib
folder. And the contents of the file should be
javax.xml.accessExternalSchema=all
Maven build solution
If you don’t have the option of creating the file. You can specify the property in the maven command
mvn <target and options> -Djavax.xml.accessExternalSchema=all