Project

General

Profile

Actions

Bug #5300

closed

SchemaLocationResolver fails to download included xsd files

Added by Jing Tao about 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
02/09/2011
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5300

Description

I am trying to insert an eml document with embedded sensorML into metacat.
But i get the error:
knb 20110209-11:20:52: [WARN]: DBSaxHandler.warning - schema_reference.4: Failed to read schema document './system.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [edu.ucsb.nceas.metacat.DBSAXHandler]
knb 20110209-11:20:52: [ERROR]: DocumentImpl.write - Problem with parsing: schema_reference.4: Failed to read schema document './system.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [edu.ucsb.nceas.metacat.DocumentImpl]
java.io.FileNotFoundException: http://chico1.dyndns.org/knb/schema/system.xsd

The sensorML xsd locates at:
http://schemas.opengis.net/sensorML/1.0.1/sensorML.xsd

DBEntityResolver can download it and register it to xml_catalog table.

However, in sensorML.xsd there is a line:
<xs:include schemaLocation="./system.xsd"/>

Our resolver can't download the system.xsd which is part of sensorML schema. Moreover, the system.xsd includes another xsd file,process.xsd, as well. Metacat couldn't download process.xsd either.

Actions

Also available in: Atom PDF