Ticket #6 (closed Defect: Invalid)
XMLSchemaParseError on openxcap start
| Reported by: | coriasco | Owned by: | admin |
|---|---|---|---|
| Priority: | Minor | Milestone: | OpenXCAP 1.0.0 |
| 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
Change History
comment:1 Changed 4 years ago by admin
- Owner changed from Mircea Amarascu to admin
- Status changed from new to accepted
comment:2 Changed 4 years ago by coriasco
- Status changed from accepted to closed
- Resolution changed from To be investigated to Fixed
I used libxml2-2.6.28 and now it works
thank you
comment:3 Changed 4 years ago by schumann
- Status changed from closed to reopened
- Resolution Fixed deleted
Hello,
although I faced the same problem and did the described update (i.e. downgrade, if using current Debian unstable), I still have the error as described above.
I don't know what else to do. Acc. OpenSER mailing list, also other users discovered those probs and couldn't find any solution.
I would be grateful for more hints or mentioning issues which could lead to the error messages from the first post.
Thanks Sebastian
PS: As I couldn't get OpenXCAP to work yet under current Debian sid, I reopened the ticket.

Hello,
This might be related to the libxml2 version you're using, I know they are constantly updating the XML schema handling.
I ran xmllint over the resource-lists.xsd file and received no errors. These are the versions of the libraries I use (on e Debian system):
libxml2 2.6.29.dfsg-1 python-libxml2 2.6.29.dfsg-1 python-lxml 1.3.3-1