Hi folks
Firstly let me say thanks,to all who have given
this newbie to forrest help in the past.
I am still trying to get EXist to work in Forrest.
I followed the steps on trail :
http://wiki.cocoondev.org/Wiki.jsp?page=EXistInCocoon
and got to the point where when I type
forrest run I see the following:
(Also I am able to load page- admin, which the above trail says indicates
EXist is running)
run:
21:27:37.763 EVENT Checking Resource aliases
21:27:38.705 EVENT Starting Jetty/4.2.8
21:27:39.476 EVENT Started WebApplicationContext[/,Forrest]
- xincon web & webdav administration interface for xindice
INFO - xincon web & webdav administration interface for xindice
- made by Jan Metzner jan.metzner@xxxxxxx
INFO - made by Jan Metzner jan.metzner@xxxxxxx
- let's have fun!
INFO - let's have fun!
DEBUG - log4j priority: DEBUG
DEBUG [init] log4j layout: %-5p [%M] %m%n
- initialize database connection
INFO [initDB] initialize database connection
DEBUG [initDB] database driver: org.exist.xmldb.DatabaseImpl
DEBUG [initDB] database root: xmldb:exist:///db
DEBUG [initDB] for tomcat: set
openorb.home=C:\My2ndForrest\build\webapp\WEB-INF
\openorb
21:27:44.844 EVENT org.exist.DatabaseAdminServlet: DatabaseAdminServlet:
exist.
home=C:\My2ndForrest\build\webapp\WEB-INF
21:27:44.854 EVENT org.exist.DatabaseAdminServlet: reading configuration
from C
:\My2ndForrest\build\webapp\WEB-INF\conf.xml
21:27:45.424 EVENT org.exist.DatabaseAdminServlet: configuring eXist
instance
21:27:46.957 EVENT org.exist.DatabaseAdminServlet: registering XMLDB driver
21:27:47.337 EVENT Started SocketListener on 0.0.0.0:8888
21:27:47.337 EVENT Started org.mortbay.jetty.Server@de3f2d
I have the configurations for XSP (in cocoon.xconf) set up and this
works fine when there are no xmldb namespace references.
I also have in cocoon.xconf builtin-logicsheet for xmldb
<builtin-logicsheet>
<parameter name="prefix" value="xmldb"/>
<parameter name="uri" value="http://exist-db.org/xmldb/1.0"/>
<parameter name="href" value="resource://org/exist/xmldb.xsl"/>
</builtin-logicsheet>
Trying to access an XSP page(simple1.xsp) with references to xmldb:
<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:xmldb="http://exist-db.org/xmldb/1.0">
.
.
<xsp:logic>
String doc = request.getParameter("doc");
if(doc != null && doc.length() > 0) {
<p>Retrieving document
<xsp:expr>doc</xsp:expr></p>
<xmldb:collection
uri="xmldb:exist:///db/shakespeare/plays"
user="guest" password="guest">
<xml-source>
<xmldb:get-document
encoding="ISO-8859-1"
as="xml">
<xmldb:name>doc</xmldb:name>
</xmldb:get-document>
</xml-source>
</xmldb:collection>
}
</xsp:logic>
The Problem:
I get the following error when trying to access the page simple.xsp:
21:28:27.745 EVENT ERROR (2003-07-28) 21:28.27:735 [access ]
(/functions
imple1.xsp) PoolThread-3/CocoonServlet: Internal Cocoon Problem
org.apache.cocoon.ProcessingException: java.lang.RuntimeException: Namespace
f
prefix 'xmldb' has not been declared.: java.lang.RuntimeException:
java.lang.
ntimeException: Namespace for prefix 'xmldb' has not been declared.
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPages
nerator.java:208)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.se
pPipeline(AbstractProcessingPipeline.java:378)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessin
ipeline.setupPipeline(AbstractCachingProcessingPipeline.java:672)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.pr
arePipeline(AbstractProcessingPipeline.java:505)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.pr
ess(AbstractProcessingPipeline.java:467)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.in
ke(SerializeNode.java:150)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessing
de.invokeNodes(AbstractParentProcessingNode.java:84)
Regards
Leo
|