<div>That fixed it. OpenXCAP worked a while back so I am not sure how it got messed up.</div>
<div> </div>
<div>Thanks for the fix Dani<br><br></div>
<div class="gmail_quote">On Mon, Jun 6, 2011 at 8:07 AM, Dani Popa <span dir="ltr"><<a href="mailto:dani.popa@gmail.com">dani.popa@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div bgcolor="#ffffff" text="#000000">when start openxcap, it try to take schema from <a href="http://www.w3.org/2001/xml.xsd" target="_blank">www.w3.org/2001/xml.xsd</a> and <a href="http://www.w3.org/" target="_blank">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
<div>
<div></div>
<div class="h5"><br><br>On 06/06/11 03:01, <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a> wrote: </div></div>
<blockquote type="cite">
<div>
<div></div>
<div class="h5">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 href="http://www.w3.org/2001/XMLSchema" target="_blank">"http://www.w3.org/2001/XMLSchema"</a> <br>
elementFormDefault="qualified" attributeFormDefault="unqualified"> <br><br><xs:import namespace=<a href="http://www.w3.org/XML/1998/namespace" target="_blank">"http://www.w3.org/XML/1998/namespace"</a> <br>
schemaLocation=<a href="http://www.w3.org/2001/xml.xsd" target="_blank">"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 href="mailto:saul@ag-projects.com" target="_blank"><saul@ag-projects.com></a> wrote: <br>> Hi, <br>> <br>> <br>> <br>> <br>> <br>> On May 25, 2011, at 5:28 PM, <a href="mailto:duane.larson@gmail.com" target="_blank">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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <br>
> <br>> <br>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a> <br>> <br>> <br>> </div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<div class="im"><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</div></pre></blockquote></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>