forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo" <leont...@bigfoot.com>
Subject Error: When accessing XSP page (Namespace forprefix 'xmldb' has not been declared)
Date Wed, 30 Jul 2003 00:29:43 GMT
Hi folks

I have the configurations for XSP in forrest(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 &amp;&amp; doc.length() &gt; 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
20:01:06.974 EVENT  ERROR   (2003-07-29) 20:01.06:964   [access  ]
(/functions/s
imple1.xsp) PoolThread-3/CocoonServlet: Internal Cocoon Problem
org.apache.cocoon.ProcessingException: java.lang.RuntimeException: Namespace
for
 prefix 'xmldb' has not been declared.: java.lang.RuntimeException:
java.lang.Ru
ntimeException: Namespace for prefix 'xmldb' has not been declared.
        at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGe
nerator.java:208)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setu
pPipeline(AbstractProcessingPipeline.java:378)
        at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingP
ipeline.setupPipeline(AbstractCachingProcessingPipeline.java:672)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prep
arePipeline(AbstractProcessingPipeline.java:505)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.proc
ess(AbstractProcessingPipeline.java:467)
        at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invo
ke(SerializeNode.java:150)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:84)


How do I get pass this error.

Regards
Leo


Mime
View raw message