title: Provider for class javax.xml.validation.SchemaFactory cannot be created (javax.xml.validation.SchemaFactoryConfigurationError)
body: <p>I am trying to migrate from Java 7 to Java 8 for an existing system , which implements Jax-ws 2.0. The build and deployment process is uses Ant task (apt, wsgen, wsimport) to generates wsdl and libraries from java annotated service end point interface and from generated WSDL prepares client libraries. Which works as expected until Java – 7. But when I tried to use jdk-8 for building, got problem in using jax-ws libraries and above mentioned ant task. I have upgraded the JAX-WS lib to JAX-WS RI – 2.2.8  and JAX-WS 2.2.10 , which did work until WSDL and schema generation using ant task wsgen, but Still I am unable to resolve the generation of client libraries from generated WSDL using wsimport. I am getting following error</p>
  
  <p>javax.xml.validation.SchemaFactoryConfigurationError: Provider for class javax.xml.validation.SchemaFactory cannot be created</p>
  
  <p>My wsgen and wsimport scripts are as below : </p>
  
  <pre><code>&lt;taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen"&gt;
          &lt;classpath refid="project.classpath"/&gt;
  &lt;/taskdef&gt;
  
  &lt;wsgen resourcedestdir="${smruti.wsdl.dir}"
          sei="com.smruti.webservice.SmrutiWebService"
          keep="true"
          sourcedestdir="${smruti.wsdl.dir}\src"
          destdir="${build.dir}"
          genwsdl="true"&gt;
          &lt;classpath&gt;
              &lt;path refid="project.classpath"/&gt;
              &lt;pathelement location="${build.dir}"/&gt;
          &lt;/classpath&gt;
  &lt;/wsgen&gt; 
  
  &lt;taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport"&gt;
              &lt;classpath refid="project.classpath" /&gt;
          &lt;/taskdef&gt;
  
  &lt;wsimport sourcedestdir="${generated.dir}/src" destdir="${build.dir}" wsdl="${wsdl.location}"  keep="true" extension="true" package="com.smruti.webservice.client"/&gt;
  </code></pre>
  
  <p>Note : I am using jdk 8 , ant- 1.9.4 , jax-ws ri - 2.2.10 libs.</p>