XQuery Problem with eXist and Cocoon

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

XQuery Problem with eXist and Cocoon

sprottekt
Hi!

I have cocoon and exist installed under tomcat, exist is not embedded in
cocoon.
exist-->http://localhost:8080/exist
cocoon-->http://localhost:8080/cocoon

When, i want to query the database from a coplet with the example script
"simple1.xsp":
http://localhost:8080/cocoon/portal/coplets/db/simple1.xsp
-->the output was wonderful!!!
I have changed the file a little bit to:

.....   <xdb:driver class="org.exist.xmldb.DatabaseImpl"/>
           <xdb:collection user="admin" password=""
               
uri="xmldb:exist://localhost:8080/exist/xmlrpc/db/shakespeare/plays/">.......

I think .XSP works correctly!!


Now, i try to query the same database with the example script "xquery.xq",
i get the following error message:

"malformed url: localhost:8081"

"org.apache.cocoon.ProcessingException: XMLDBException occurred:
malformed url: localhost:8081: org.xmldb.api.base.XMLDBException:
malformed url: localhost:8081"

When i uncomment the following sitemap.xmap entry:
..... <!--<map:parameter name="collection"  
value="xmldb:exist://localhost:8080/exist/xmlrpc"/>-->......

I get this error message:

"local database server not running"

"org.apache.cocoon.ProcessingException: XMLDBException occurred: local
database server not running: org.xmldb.api.base.XMLDBException: local
database server not running"


I hope anybody has an idea and sorry for my very bad english.

Hans-Jörg Schmidt

       

       
               
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open