From: Philippe G. <pgu...@so...> - 2004-04-30 08:58:55
|
I decided to launch Exist as standalone and access it from cocoon in Jetty. I put in cocoon.xconf (from my cocoon) the builtin-logicsheet and Exist driver, and i try to query a doc with XSP/XML:DB logicsheet. I have no result in this XSP page, no error from cocoon, and this message from eXist standalone : [Thread-5] DEBUG (SecurityManager.java [getUser]:196) - user not found anyone any idea? I don't know where to configure the authentication! Regards, Phil cocoon.xconf ------------- <builtin-logicsheet> <parameter name="prefix" value="xdb"/> <parameter name="uri" value="http://exist-db.org/xmldb/1.0"/> <parameter name="href" value="resource://org/exist/xmldb.xsl"/> </builtin-logicsheet> <component-instance class="org.apache.cocoon.components.source.impl.XMLDBSourceFactory" name="xmldb"> <driver class="org.exist.xmldb.DatabaseImpl" type="exist"/> </component-instance> My sample.xsp -------------- <?xml version="1.0"?> <xsp:page xmlns:xsp="http://apache.org/xsp" xmlns:xdb="http://exist-db.org/xmldb/1.0" xmlns:util="http://apache.org/xsp/util/2.0"> <xsp:logic> String doc = "doc.xml"; </xsp:logic> <document> <xdb:driver class="org.exist.xmldb.DatabaseImpl"/> <xdb:collection uri="xmldb:exist://localhost:8081/db/venues"> <b> <xdb:get-document encoding="ISO-8859-1" as="xml"> <xdb:name><xsp:expr>doc</xsp:expr></xdb:name> </xdb:get-document> </b> </xdb:collection> </document> </xsp:page> |