Stefano,

I see that a fix for the URL handling was checked in on 8.24, but somehow I cannot tell for sure if this made it into 2.5.3 and 2.5.4.

Is there any way you can try an unstable build?

http://orbeon.sourceforge.net/unstable-blds/presentation-server/

-Erik

Stefano Santoro wrote:

Hi,

I am running my own instance of exist on port 9090. I have configured the
datasource file as follows:

<datasource>
    <!--  Specify the driver for the eXist database -->
    <driver-class-name>org.exist.xmldb.DatabaseImpl</driver-class-name>
    <uri>xmldb:exist://localhost:9090/exist/xmlrpc</uri>
    <username>stefano</username>
    <password>stefano</password>
</datasource>

If I go through the eXist dist supplied client I can connect to that uri
without any problem., but when I run this little pipeline file:

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";
    xmlns:oxf="http://www.orbeon.com/oxf/processors";
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
    <p:processor name="oxf:xmldb-query">
        <p:input name="datasource" href="oxf:/datasource.xml"/>
        <p:input name="query">
            <xdb:query collection="/stefano/test" create-collection="true"
                xmlns:xdb="http://orbeon.org/oxf/xml/xmldb";> xquery version
                "1.0"; <result>{ /[EMAIL PROTECTED]'1'] }</result>
            </xdb:query>
        </p:input>
        <p:output name="data" id="result"/>
    </p:processor>
    <p:processor name="oxf:xml-serializer">
        <p:input name="config">
            <config/>
        </p:input>
        <p:input name="data" href="#result"/>
    </p:processor>
</p:config>

For some reason the processor complains that I am feeding it a malformed
uri (localhost:8081 Uh?). I know that is reading the datasource file,
because it complains if I misspell the <username> element. I have tried
reading the source code, and I know that is passing through the initial
checks in XMLDBProcessor.java. But something go astray when the collection
string is built and passed to DatabaseManager.getCollection().

I'd appreciate any help on the matter.

Thnx!
Stefano

Exception exerpt:

org.orbeon.oxf.pipeline.InitUtils  - Exception with no location data
org.xmldb.api.base.XMLDBException: malformed url: localhost:8081
        at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:210)
        at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
        at
org.orbeon.oxf.processor.xmldb.XMLDBProcessor.getCollection(XMLDBProc
essor.java:167)
        at
org.orbeon.oxf.processor.xmldb.XMLDBProcessor.executeQuery(XMLDBProce
ssor.java:244)
        at
org.orbeon.oxf.processor.xmldb.XMLDBProcessor.query(XMLDBProcessor.ja
va:187)



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user



------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to