From: dynnamitt <kje...@gm...> - 2009-04-06 07:00:12
|
Can I use XQueryGenerator in a pure Cocoon 2.1.11 build (without exist-db embedded) to connect to remote exist machine ? Say if I 1) drop 'exist-optional.jar' in my pure Cocoon app's WEB-INF/lib folder ( on machine 1 ) 2) configured this sitemap generator: <map:generator name="xquery" src="org.exist.cocoon.XQueryGenerator"> <map:parameter name="collection" value="xmldb:exist://remote-server:8080/db"/> </map:generator> Would XQueryGenerator then work as a distributed xmldb client ?? -- View this message in context: http://www.nabble.com/XQueryGenerator-%28exist-optional.jar%29----a-distributed-xmldb-client---tp22903214p22903214.html Sent from the exist-open mailing list archive at Nabble.com. |
From: dynnamitt <kje...@gm...> - 2009-04-06 21:29:26
|
I found this discussion matching my question: http://www.nabble.com/forum/ViewPost.jtp?post=6960926 So my next quest will be : http://exist-db.org/building.html ( Ch. #3 ) K-) dynnamitt wrote: > > Can I use XQueryGenerator in a pure Cocoon 2.1.11 build (without exist-db > embedded) > to connect to remote exist machine ? > > Say if I > > 1) drop 'exist-optional.jar' in my pure Cocoon app's WEB-INF/lib folder ( > on machine 1 ) > > 2) configured this sitemap generator: > <map:generator name="xquery" src="org.exist.cocoon.XQueryGenerator"> > <map:parameter name="collection" > value="xmldb:exist://remote-server:8080/db"/> > </map:generator> > > Would XQueryGenerator then work as a distributed xmldb client ?? > > > -- View this message in context: http://www.nabble.com/XQueryGenerator-%28exist-optional.jar%29----a-distributed-xmldb-client---tp22903214p22917746.html Sent from the exist-open mailing list archive at Nabble.com. |
From: dynnamitt <kje...@gm...> - 2009-04-21 11:52:23
|
..when I try this I end up with this error: org.xmldb.api.base.XMLDBException: Unknown or unparsable API for: xmldb:exist://localhost:8080/db Anyone ? dynnamitt wrote: > > I found this discussion matching my question: > http://www.nabble.com/forum/ViewPost.jtp?post=6960926 > > So my next quest will be : http://exist-db.org/building.html ( Ch. #3 ) > > K-) > > > dynnamitt wrote: >> >> Can I use XQueryGenerator in a pure Cocoon 2.1.11 build (without exist-db >> embedded) >> to connect to remote exist machine ? >> >> Say if I >> >> 1) drop 'exist-optional.jar' in my pure Cocoon app's WEB-INF/lib folder ( >> on machine 1 ) >> >> 2) configured this sitemap generator: >> <map:generator name="xquery" src="org.exist.cocoon.XQueryGenerator"> >> <map:parameter name="collection" >> value="xmldb:exist://remote-server:8080/db"/> >> </map:generator> >> >> Would XQueryGenerator then work as a distributed xmldb client ?? >> >> >> > > -- View this message in context: http://www.nabble.com/XQueryGenerator-%28exist-optional.jar%29----a-distributed-xmldb-client---tp22903214p23154442.html Sent from the exist-open mailing list archive at Nabble.com. |
From: dynnamitt <kje...@gm...> - 2009-04-21 12:04:58
|
here is the stacktrace from cocoon.log: ------------------------------------------ ERROR (2009-04-21) 13:35.47:903 [sitemap.handled-errors] (/cocoon2111exist-client/dxp_core/test__route/ole) http-8086-1/ErrorHandlerHelper: XMLDBException occurred: Unknown or unparsable API for: xmldb:exist://localhost:8080/db at <map:serialize> - file:///home/kdm/apps/tomcat-6.0.14/webapps/cocoon2111exist-client/dxp_core/sitemap.xmap:137:33 at <map:generate type="xquery"> - file:///home/kdm/apps/tomcat-6.0.14/webapps/cocoon2111exist-client/dxp_core/sitemap.xmap:127:91 at <map:serialize> - file:///home/kdm/apps/tomcat-6.0.14/webapps/cocoon2111exist-client/dxp_core/sitemap.xmap:58:32 at <map:generate> - file:///home/kdm/apps/tomcat-6.0.14/webapps/cocoon2111exist-client/dxp_core/sitemap.xmap:57:58 at <map:mount> - file:///home/kdm/apps/tomcat-6.0.14/webapps/cocoon2111exist-client/sitemap.xmap:1059:92 org.xmldb.api.base.XMLDBException: Unknown or unparsable API for: xmldb:exist://localhost:8080/db at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:159) at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:150) at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) at org.exist.cocoon.XQueryGenerator.generate(XQueryGenerator.java:294) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:780) at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414) at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:101) at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:321) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:116) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:579) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:280) at org.apache.cocoon.components....... kjetil dynnamitt wrote: > > ..when I try this I end up with this error: > org.xmldb.api.base.XMLDBException: Unknown or unparsable API for: > xmldb:exist://localhost:8080/db > > Anyone ? > > > > dynnamitt wrote: >> >> I found this discussion matching my question: >> http://www.nabble.com/forum/ViewPost.jtp?post=6960926 >> >> So my next quest will be : http://exist-db.org/building.html ( Ch. #3 ) >> >> K-) >> >> >> dynnamitt wrote: >>> >>> Can I use XQueryGenerator in a pure Cocoon 2.1.11 build (without >>> exist-db embedded) >>> to connect to remote exist machine ? >>> >>> Say if I >>> >>> 1) drop 'exist-optional.jar' in my pure Cocoon app's WEB-INF/lib folder >>> ( on machine 1 ) >>> >>> 2) configured this sitemap generator: >>> <map:generator name="xquery" src="org.exist.cocoon.XQueryGenerator"> >>> <map:parameter name="collection" >>> value="xmldb:exist://remote-server:8080/db"/> >>> </map:generator> >>> >>> Would XQueryGenerator then work as a distributed xmldb client ?? >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/XQueryGenerator-%28exist-optional.jar%29----a-distributed-xmldb-client---tp22903214p23154618.html Sent from the exist-open mailing list archive at Nabble.com. |