Ticket #6 (closed Defect: Invalid)
XMLSchemaParseError on openxcap start
| Reported by: | coriasco | Owned by: | admin |
|---|---|---|---|
| Priority: | Minor | Milestone: | OpenXCAP 1.0 stable release |
| Component: | XCAP protocol | Version: | |
| Severity: | Critical | Keywords: | |
| Cc: |
Description
Hi, I think I installed OpenXCAP with all correct dependencies. When I try to start the server, I get this:
Traceback (most recent call last):
File "/usr/bin/openxcap", line 56, in ?
from xcap.server import XCAPServer
File "/usr/lib/python2.4/site-packages/xcap/server.py", line 21, in ?
from xcap import authentication
File "/usr/lib/python2.4/site-packages/xcap/authentication.py", line 21, in ?
from xcap.appusage import getApplicationForURI
File "/usr/lib/python2.4/site-packages/xcap/appusage/init.py", line 465, in ?
applications = {'xcap-caps': XCAPCapabilitiesApplication(),
File "/usr/lib/python2.4/site-packages/xcap/appusage/init.py", line 63, in init
self.xml_schema = etree.XMLSchema(xml_schema_doc)
File "xmlschema.pxi", line 67, in etree.XMLSchema.init
raise XMLSchemaParseError, "Document is not valid XML Schema"
etree.XMLSchemaParseError: Document is not valid XML Schema
I tried to debug the Python code and I found the problem seems to be in parsing the 'resource-lists.xsd' schema located (in my installation) in "/usr/lib/python2.4/site-packages/xcap/appusage/../xml-schemas/".
I tried to use xmllint (in the libxml2) package to debug the 'resource-lists.xsd' file and I got these problems:
resource-lists.xsd:8: element complexType: Schemas parser error : complex type 'listType': The content model is not determinist. resource-lists.xsd:14: element complexType: Schemas parser error : local complex type: The content model is not determinist. WXS schema resource-lists.xsd failed to compile
Any idea? Is this my real problem or am I going wrong elsewhere?
Thank you
Giovanni
