That was missing from the file on the first line, but it still crashes.
Here is what it looks like now
/usr/share/pyshared/xcap/appusage/xml-schemas/xcap-directory.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:oma:xml:xdm:xcap-directory"
xmlns="urn:oma:xml:xdm:xcap-directory"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:element name="xcap-directory">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="folder">
<xs:complexType>
<xs:choice>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="entry">
<xs:complexType>
<xs:attribute name="uri" type="xs:anyURI" use="required"/>
<xs:attribute name="etag" type="xs:string" use="required"/>
<xs:attribute name="last-modified" type="xs:dateTime"/>
<xs:attribute name="size" type="xs:nonNegativeInteger"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:element name="error-code" type="xs:string"/>
</xs:choice>
<xs:attribute name="auid" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
And here is what the syslog says when it crashes.
Jun 5 18:58:15 xcap01 openxcap[5705]: fatal error: failed to create
OpenXCAP 2.0.0: Document is empty, line 1, column 1
Jun 5 18:58:15 xcap01 openxcap[5705]: Traceback (most recent call last):
Jun 5 18:58:15 xcap01 openxcap[5705]: File "/usr/bin/openxcap", line 64, in
<module>
Jun 5 18:58:15 xcap01 openxcap[5705]: from xcap.server import XCAPServer
Jun 5 18:58:15 xcap01 openxcap[5705]:
File "/usr/lib/pymodules/python2.6/xcap/server.py", line 20, in <module>
Jun 5 18:58:15 xcap01 openxcap[5705]: from xcap import authentication
Jun 5 18:58:15 xcap01 openxcap[5705]:
File "/usr/lib/pymodules/python2.6/xcap/authentication.py", line 28, in
<module>
Jun 5 18:58:15 xcap01 openxcap[5705]: from xcap.appusage import
getApplicationForURI, namespaces, public_get_applications
Jun 5 18:58:15 xcap01 openxcap[5705]:
File "/usr/lib/pymodules/python2.6/xcap/appusage/__init__.py", line 357, in
<module>
Jun 5 18:58:15 xcap01 openxcap[5705]: XCAPDirectoryApplication.id:
XCAPDirectoryApplication(storage)
Jun 5 18:58:15 xcap01 openxcap[5705]:
File "/usr/lib/pymodules/python2.6/xcap/appusage/__init__.py", line 59, in
__init__
Jun 5 18:58:15 xcap01 openxcap[5705]: self.xml_schema =
etree.XMLSchema(xml_schema_doc)
Jun 5 18:58:15 xcap01 openxcap[5705]: File "xmlschema.pxi", line 105, in
lxml.etree.XMLSchema.__init__ (src/lxml/lxml.etree.c:128508)
Jun 5 18:58:15 xcap01 openxcap[5705]: XMLSchemaParseError: Document is
empty, line 1, column 1
On Jun 3, 2011 5:33am, Saúl Ibarra Corretgé <[email protected]> wrote:
Hi,
On May 25, 2011, at 5:28 PM, [email protected] wrote:
> I am trying to start up openxcap on a server that it used to work on
without issue. It starts up and then after 20 seconds or so it crashes.
In syslog I am seeing the following error
>
>
> May 25 10:18:00 xcap01 openxcap[701]: Starting OpenXCAP 2.0.0
> May 25 10:18:01 xcap01 openxcap[701]: using set_wakeup_fd
> May 25 10:18:32 xcap01 openxcap[701]: fatal error: failed to create
OpenXCAP 2.0.0: Document is empty, line 1, column 1
> May 25 10:18:32 xcap01 openxcap[701]: Traceback (most recent call last):
> May 25 10:18:32 xcap01 openxcap[701]: File "/usr/bin/openxcap", line
64, in
> May 25 10:18:32 xcap01 openxcap[701]: from xcap.server import XCAPServer
> May 25 10:18:32 xcap01 openxcap[701]:
File "/usr/lib/pymodules/python2.6/xcap/server.py", line 20, in
> May 25 10:18:32 xcap01 openxcap[701]: from xcap import authentication
> May 25 10:18:32 xcap01 openxcap[701]:
File "/usr/lib/pymodules/python2.6/xcap/authentication.py", line 28, in
> May 25 10:18:32 xcap01 openxcap[701]: from xcap.appusage import
getApplicationForURI, namespaces, public_get_applications
> May 25 10:18:32 xcap01 openxcap[701]:
File "/usr/lib/pymodules/python2.6/xcap/appusage/__init__.py", line 357,
in
> May 25 10:18:32 xcap01 openxcap[701]: XCAPDirectoryApplication.id:
XCAPDirectoryApplication(storage)
> May 25 10:18:32 xcap01 openxcap[701]:
File "/usr/lib/pymodules/python2.6/xcap/appusage/__init__.py", line 59,
in __init__
> May 25 10:18:32 xcap01 openxcap[701]: self.xml_schema =
etree.XMLSchema(xml_schema_doc)
> May 25 10:18:32 xcap01 openxcap[701]: File "xmlschema.pxi", line 105,
in lxml.etree.XMLSchema.__init__ (src/lxml/lxml.etree.c:128508)
> May 25 10:18:32 xcap01 openxcap[701]: XMLSchemaParseError: Document is
empty, line 1, column
Looks like xcap-directory.xsd schema file lacks the initial XML document
declaration. Can you add this at the top of that file (check the location
with dpkg -L openxcap):
Add it as the first line and please let me know if it worked for you.
Regards,
--
Saúl Ibarra Corretgé
AG Projects
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users