Here the issue is that the JAX-WS is creating a master pseudo schema and the & present in schemaLocation is not transformed to amp&; due to which we are getting SchemaValidationError
So I have modified the masterPseudoSchema method in AbstractSchemaValidationTube.java as follows
First creating a document schema and adding the elements needed for masterPseudoSchema
then creating DOMSource from the above created document
then transforming DOMSource to xml string which will expand the required characters
finally creating and returning StreamSource from the above transformed xml string
Here the issue is that the JAX-WS is creating a master pseudo schema and the & present in schemaLocation is not transformed to amp&; due to which we are getting SchemaValidationError So I have modified the masterPseudoSchema method in AbstractSchemaValidationTube.java as follows