<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
when start openxcap, it try to take schema from
<a class="moz-txt-link-abbreviated" href="http://www.w3.org/2001/xml.xsd">www.w3.org/2001/xml.xsd</a> and <a class="moz-txt-link-abbreviated" href="http://www.w3.org">www.w3.org</a> doesn't responde. <br>
<br>
I changed schemaLocation in
"/usr/local/pymodules/python2.6/xcap/appusage/xml-schemas/xcap-directory.xsd"
and pointed to local file.<br>
<br>
Dani<br>
<br>
On 06/06/11 03:01, <a class="moz-txt-link-abbreviated" href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a> wrote:
<blockquote cite="mid:20cf305b0e18a8865f04a4ffcd15@google.com"
type="cite">That was missing from the file on the first line, but
it still crashes. Here is what it looks like now
<br>
<br>
/usr/share/pyshared/xcap/appusage/xml-schemas/xcap-directory.xsd
<br>
<br>
<br>
<?xml version="1.0" encoding="UTF-8"?>
<br>
<xs:schema targetNamespace="urn:oma:xml:xdm:xcap-directory"
<br>
xmlns="urn:oma:xml:xdm:xcap-directory"
<br>
xmlns:xs=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
<br>
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<br>
<br>
<xs:import namespace=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/XML/1998/namespace">"http://www.w3.org/XML/1998/namespace"</a>
<br>
schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/xml.xsd">"http://www.w3.org/2001/xml.xsd"</a>/>
<br>
<br>
<xs:element name="xcap-directory">
<br>
<xs:complexType>
<br>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<br>
<xs:element name="folder">
<br>
<xs:complexType>
<br>
<xs:choice>
<br>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<br>
<xs:element name="entry">
<br>
<xs:complexType>
<br>
<xs:attribute name="uri" type="xs:anyURI" use="required"/>
<br>
<xs:attribute name="etag" type="xs:string" use="required"/>
<br>
<xs:attribute name="last-modified" type="xs:dateTime"/>
<br>
<xs:attribute name="size" type="xs:nonNegativeInteger"/>
<br>
<xs:anyAttribute processContents="lax"/>
<br>
</xs:complexType>
<br>
</xs:element>
<br>
</xs:sequence>
<br>
<xs:element name="error-code" type="xs:string"/>
<br>
</xs:choice>
<br>
<xs:attribute name="auid" type="xs:string" use="required"/>
<br>
</xs:complexType>
<br>
</xs:element>
<br>
</xs:sequence>
<br>
</xs:complexType>
<br>
</xs:element>
<br>
</xs:schema>
<br>
<br>
<br>
<br>
<br>
<br>
And here is what the syslog says when it crashes.
<br>
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: fatal error: failed to
create OpenXCAP 2.0.0: Document is empty, line 1, column 1
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: Traceback (most recent call
last):
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: File "/usr/bin/openxcap",
line 64, in <module>
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: from xcap.server import
XCAPServer
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: File
"/usr/lib/pymodules/python2.6/xcap/server.py", line 20, in
<module>
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: from xcap import
authentication
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: File
"/usr/lib/pymodules/python2.6/xcap/authentication.py", line 28, in
<module>
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: from xcap.appusage import
getApplicationForURI, namespaces, public_get_applications
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: File
"/usr/lib/pymodules/python2.6/xcap/appusage/__init__.py", line
357, in <module>
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: XCAPDirectoryApplication.id:
XCAPDirectoryApplication(storage)
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: File
"/usr/lib/pymodules/python2.6/xcap/appusage/__init__.py", line 59,
in __init__
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: self.xml_schema =
etree.XMLSchema(xml_schema_doc)
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: File "xmlschema.pxi", line
105, in lxml.etree.XMLSchema.__init__
(src/lxml/lxml.etree.c:128508)
<br>
Jun 5 18:58:15 xcap01 openxcap[5705]: XMLSchemaParseError:
Document is empty, line 1, column 1
<br>
<br>
<br>
<br>
<br>
On Jun 3, 2011 5:33am, Saúl Ibarra Corretgé
<a class="moz-txt-link-rfc2396E" href="mailto:saul@ag-projects.com"><saul@ag-projects.com></a> wrote:
<br>
> Hi,
<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> On May 25, 2011, at 5:28 PM, <a class="moz-txt-link-abbreviated" href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a> wrote:
<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> > 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
<br>
> <br>
> <br>
> >
<br>
> <br>
> <br>
> >
<br>
> <br>
> <br>
> > May 25 10:18:00 xcap01 openxcap[701]: Starting OpenXCAP
2.0.0
<br>
> <br>
> <br>
> > May 25 10:18:01 xcap01 openxcap[701]: using
set_wakeup_fd
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: fatal error:
failed to create OpenXCAP 2.0.0: Document is empty, line 1, column
1
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: Traceback (most
recent call last):
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: File
"/usr/bin/openxcap", line 64, in <br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: from xcap.server
import XCAPServer
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: File
"/usr/lib/pymodules/python2.6/xcap/server.py", line 20, in <br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: from xcap import
authentication
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: File
"/usr/lib/pymodules/python2.6/xcap/authentication.py", line 28, in
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: from xcap.appusage
import getApplicationForURI, namespaces, public_get_applications
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: File
"/usr/lib/pymodules/python2.6/xcap/appusage/__init__.py", line
357, in <br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]:
XCAPDirectoryApplication.id: XCAPDirectoryApplication(storage)
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: File
"/usr/lib/pymodules/python2.6/xcap/appusage/__init__.py", line 59,
in __init__
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: self.xml_schema =
etree.XMLSchema(xml_schema_doc)
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]: File
"xmlschema.pxi", line 105, in lxml.etree.XMLSchema.__init__
(src/lxml/lxml.etree.c:128508)
<br>
> <br>
> <br>
> > May 25 10:18:32 xcap01 openxcap[701]:
XMLSchemaParseError: Document is empty, line 1, column
<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> 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):
<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Add it as the first line and please let me know if it worked
for you.
<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Regards,
<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> --
<br>
> <br>
> <br>
> Saúl Ibarra Corretgé
<br>
> <br>
> <br>
> AG Projects
<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________
<br>
> <br>
> <br>
> Users mailing list
<br>
> <br>
> <br>
> <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
> <br>
> <br>
> <a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
> <br>
> <br>
>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>