forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo" <leont...@tstt.net.tt>
Subject RE: Error: When accessing XSP page (Namespace forprefix 'xmldb' has not been declared)
Date Wed, 27 Aug 2003 10:30:27 GMT
Hi folks

Apparently the problem lies with the xalan-2.5.1.jar.

I got this from a combination of help on CocoonWiki
http://wiki.cocoondev.org/Wiki.jsp?page=XindiceLogicsheet
near the bottom of the page, comments starting with
"Maybe you'll get some error at the browser stage..."
So as a workaround, still using xalan-2.5.1.jar
I changed xmldb namespace to dbxml in my xsp page and
referenced logicsheet and presto, problem fixed


and Exist mailing list
http://article.gmane.org/gmane.text.xml.exist/361
and
http://article.gmane.org/gmane.text.xml.exist/362
The problem is solved when I replace with xalan-2.4.1.jar.
So for now I am sticking with this option
unless there is a compelling reason to
have xalan-2.5.1.jar. (.ie something else gets broken in
the process)

Regards
Leo


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