XML Framework not parsing external schemas

Description

<WMS_Capabilities version="1.3.0" xmlns="http://www.opengis.net/wms"
xmlns:cwwms="http://schemas.cubewerx.com/namespaces/wms"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wms http://schemas.cubewerx.com/schemas/wms/1.3.0/WMS_Capabilities.xsd - http://schemas.cubewerx.com/schemas/wms/1.3.0/CubeSERV_Capabilities.xsd">

Isn't parsing the CubeSERV_capabilities.xsd file

Elements in Capabilities:
<Request>
<GetCapabilities></GetCapabilities>
<GetMap></GetMap>
<GetFeatureInfo></GetFeatureInfo>
<cwwmsescribeLayer></cwwmsescribeLayer>
<cwwms:GetLegendGraphic></cwwms:GetLegendGraphic>
<cwwms:GetLegend></cwwms:GetLegend>
<cwwms:GetStyles></cwwms:GetStyles>
<cwwmsutStyles></cwwmsutStyles>
</Request>

org.xml.sax.SAXException: Invalid element order according: Request
at org.geotools.xml.handlers.ComplexElementHandler.validateElementOrder(ComplexElementHandler.java:222)
at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:162)
at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:186)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:255)
at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:106)
at org.geotools.data.wms.WebMapServer.parseCapabilities(WebMapServer.java:411)
at org.geotools.data.wms.WebMapServer.negotiateVersion(WebMapServer.java:276)
at org.geotools.data.wms.WebMapServer.getCapabilities(WebMapServer.java:431)
at org.geotools.data.wms.WebMapServer.<init>(WebMapServer.java:162)
at org.geotools.data.wms.test.ServersTest.testServers(ServersTest.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)

Environment

None

Activity

Show:
codehaus
April 10, 2015, 3:08 PM

CodeHaus Comment From: dzwiers - Time: Tue, 9 Nov 2004 14:45:52 -0600
---------------------
It's actually parsing the xsd file, but when validating the element order it is not taking the substitution group into account .. this can be circumvented by turning the validation off ... I'll also get one this in the next couple days.

codehaus
April 10, 2015, 3:08 PM

CodeHaus Comment From: dzwiers - Time: Fri, 12 Nov 2004 17:16:22 -0600
---------------------
This one took a while ... didn't realize there were conflicts, but it's fixed now.

codehaus
April 10, 2015, 3:08 PM

CodeHaus Comment From: dzwiers - Time: Mon, 15 Nov 2004 15:35:51 -0600
---------------------
one line was still wrong ... it was passing on my machine before ...

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Affects versions

Priority

High
Configure