Trouble loading XSD-compliant DOM-parser when using testRunner.sh vs. UI
Hi forum
I have added a jar-file containing some groovy code that uses a SchemaFactory to validate an xml file using schema 1.1. For that purposes I have also added the special Xerces beta library that supports 1.1. This works fine when I run my test with assertion from the user interface. But - If I try the same test script using testRunner.sh it fails, even though it seems that the extension jars are loaded:
16:41:37,723 INFO [SoapUI] Adding [/Applications/SoapUI-5.4.0.app/Contents/java/app/bin/ext/RDFinedSoapUILib.jar] to extensions classpath
16:41:37,724 INFO [SoapUI] Adding [/Applications/SoapUI-5.4.0.app/Contents/java/app/bin/ext/saxon9pe.jar] to extensions classpath
16:41:37,724 INFO [SoapUI] Adding [/Applications/SoapUI-5.4.0.app/Contents/java/app/bin/ext/xercesImpl-xsd11-shaded-2.12-beta-r1667115.jar] to extensions classpath
16:41:37,724 INFO [SoapUI] Adding [/Applications/SoapUI-5.4.0.app/Contents/java/app/bin/ext/xml-apis-1.4.01.jar] to extensions classpath
16:41:37,955 INFO [DefaultSoapUICore] initialized soapui-settings from [/Users/runestilling/soapui-settings.xml]
...
16:41:44,715 INFO [log] Validate begin
16:41:44,758 INFO [log] No SchemaFactory that implements the schema language specified by: http://www.w3.org/XML/XMLSchema/v1.1 could be loaded
16:41:44,759 INFO [log] [Ljava.lang.StackTraceElement;@3e2fc448
java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/XML/XMLSchema/v1.1 could be loaded
at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:215)
at javax.xml.validation.SchemaFactory$newInstance.call(Unknown Source)
What could the solution be to this?
Regards,
Rune