Subject:XSD 1.0/1.1 schema validation is failing in the XSD editor Author:Yitzhak Khabinsky Date:07 Apr 2014 09:04 AM Originally Posted: 26 Mar 2014 12:35 PM
XSD 1.0/1.1 schema validation is failing in the XSD editor.
My environment:
1. SS X15 Enterprise Edition, build 1910n
2. Java v.1.8.0
I am trying to validate the XSD 1.1 schema itself in the XSD editor.
I pick Saxonica 9.4.06 Validator XSD 1.1 in the menu on the toolbar.
I am getting the following error:
Exception in thread "main" javax.xml.validation.SchemaFactoryConfigurationError: Provider for class javax.xml.validation.SchemaFactory cannot be created
at javax.xml.validation.SchemaFactoryFinder.findServiceProvider(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder._newFactory(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder.newFactory(Unknown Source)
at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
at com.stylusstudio.debugger.saxon.Validate.validateXSD(Validate.java:123)
at com.stylusstudio.debugger.saxon.Validate.main(Validate.java:81)
Caused by: java.util.ServiceConfigurationError: javax.xml.validation.SchemaFactory: jar:file:/C:/Program%20Files%20(x86)/Stylus%20Studio%20X15%20XML%20Enterprise%20Suite/bin/saxonsa.jar!/META-INF/services/javax.xml.validation.SchemaFactory:2: Illegal configuration-file syntax
at java.util.ServiceLoader.fail(Unknown Source)
at java.util.ServiceLoader.fail(Unknown Source)
at java.util.ServiceLoader.parseLine(Unknown Source)
at java.util.ServiceLoader.parse(Unknown Source)
at java.util.ServiceLoader.access$200(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNextService(Unknown Source)
at java.util.ServiceLoader$LazyIterator.hasNext(Unknown Source)
at java.util.ServiceLoader$1.hasNext(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source)
at javax.xml.validation.SchemaFactoryFinder$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 6 more
I know for a fact that there is nothing wrong with the XSD schema.
When I run the actual XML validation against the XSD schema in question it runs without any problem.
Please see below.
<<"The StAX API, JSR 173, defined newInstance and newFactory methods with a factoryId as a parameter. Since there was no constraint on what the value could be in the StAX specification, it implied it could be any arbitrary string. With JDK 8 specification change, in the context of JAXP, the value of factoryId must be the name of the base service class if it is intended to represent the name of the service configuration file, that is, if it is not the name of a System Property.">>
The problem has been fixed in Saxon 9.5.1.4 which will be bundled in the next Stylus Studio release.
At this time we do not have a release date to share.