Hi,
I wrote a Cocoon2 Action. Nothing dramticaly it just adds a
requestparameter.
(The java File is added)
This action I can't call in the sitemap. And I have no clue why. Can
anyone give me a hint?
The sitemap of this direcory is also added. (This is included with the
following statement from the main sitemap:
<map:match pattern="XMLDB_EVAL/**">
<map:mount check-reload="yes" src="XMLDB_EVAL/"
uri-prefix="XMLDB_EVAL"/>
</map:match>
)
When I call http://p009:8080/cocoon/XMLDB_EVAL/XMLTest.html I get a
Exception "Attempted to process incomplete pipeline".
Why? Any hints?
Thanks a lot
Tobias
XMLActionTest.java
<?xml version="1.0"?>
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Tobias Luikard
(Exxcellent) -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================
-->
<map:components>
<map:generators default="file">
<map:generator label="content" name="file"
src="org.apache.cocoon.generation.FileGenerator"/>
<map:generator label="content" name="serverpages"
src="org.apache.cocoon.generation.ServerPagesGenerator"/>
</map:generators>
<map:transformers default="xslt">
<map:transformer name="xslt"
src="org.apache.cocoon.transformation.TraxTransformer">
<use-store>true</use-store>
<use-request-parameters>false</use-request-parameters>
<use-browser-capabilities-db>false</use-browser-capabilities-db>
</map:transformer>
</map:transformers>
<map:readers default="resource">
<map:reader name="resource"
src="org.apache.cocoon.reading.ResourceReader"/>
</map:readers>
<map:serializers default="html">
<map:serializer name="links"
src="org.apache.cocoon.serialization.LinkSerializer"/>
<map:serializer mime-type="text/xml" name="xml"
src="org.apache.cocoon.serialization.XMLSerializer"/>
<map:serializer mime-type="text/html" name="html"
src="org.apache.cocoon.serialization.HTMLSerializer"/>
</map:serializers>
<map:selectors default="browser"/>
<map:matchers default="wildcard">
<map:matcher name="wildcard"
src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
</map:matchers>
<map:actions default="XMLProducer">
<map:action name="XMLProducer"
src="de.exxcellent.cocoon.acting.XMLActionTest"/>
</map:actions>
</map:components>
<!-- =========================== Pipelines =================================
-->
<map:pipelines>
<map:pipeline>
<map:match pattern="">
<map:redirect-to uri="ot.html"/>
</map:match>
<map:match pattern="ot.html">
<map:generate src="ot.xml"/>
<map:transform src="ot.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="XMLTest.html">
<map:act type="XMLProducer">
<map:gernate type="serverpages"
src="XMLTest.xsp" />
<map:transform src="XMLText.xsl"/>
<map:serialize/>
</map:act>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
<!-- end of file -->
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>