Your <map:components> block isn't organized correctly :

<map:selectors>        <--- remove the "/"
  <map:selector name="parameter" ... />
</map:selectors>       <--- close the block.

A reminder also : the "parameter" selector test a String. This means the
"unveil-it" action should put a string in the Map it returns.

Eduardo Godoy Vega a écrit :
> 
> What I'm doing wrong ?
> here is my sitemap
> 
> <?xml version="1.0"?>
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
>         <!-- =========================== Components
> ================================ -->
>         <map:components>
>                 <map:generators default="file"/>
>                 <map:transformers default="xslt"/>
>                 <map:readers default="resource"/>
>                 <map:serializers default="html"/>
>                 <map:selectors default="browser"/>
>                         <map:selector name="parameter"
> factory="org.apache.cocoon.selection.ParameterSelectorFactory"/>
>                 <map:matchers default="wildcard">
>                         <map:matcher name="wildcard"
> src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
>                 </map:matchers>
>                 <map:actions>
>                         <map:action name="unveil-it"
> src="com.unveil.cocoon.acting.UnveilAction"/>
>                 </map:actions>
>         </map:components>
>         <!-- =========================== Pipelines
> ================================= -->
>         <map:pipelines>
>                 <map:pipeline>
>                         <map:match pattern="">
>                                 <map:redirect-to uri="initial"/>
>                         </map:match>
>                         <map:match pattern="initial">
>                                 <map:generate type="serverpages" src="llbean.xsp"/>
>                                 <map:transform src="stylesheets/llbean-html.xsl"/>
>                                 <map:serialize/>
>                         </map:match>
>                         <map:match pattern="process-unveil">
>                                 <map:act type="unveil-it">
>                                   <map:select type="parameter">
>                                         <map:parameter 
>name="parameter-selector-test" value="{Count}"/>
>                                         <map:when test="0">
>                                                 <map:generate src="count0.xsp"/>
>                                         </map:when>
>                                         <map:when test="1">
>                                                 <map:generate src="count1.xsp"/>
>                                         </map:when>
>                                         <map:otherwhise>
>                                                 <map:generate src="countMany.xsp"/>
>                                         </map:otherwhise>
>                                   </map:select>
>                                         <map:transform 
>src="stylesheets/llbean-html.xsl">
>                                                 <map:parameter 
>name="use-request-parameters" value="true"/>
>                                         </map:transform>
>                                 </map:act>
>                                 <map:serialize/>
>                         </map:match>
>                 </map:pipeline>
>         </map:pipelines>
> </map:sitemap>
> <!-- end of file -->
> 
> And I get this error msg:
> 
> ERROR   (2001-10-22) 16:58.21:585   [cocoon  ]
> (/cocoon/unveil/process-unveil) Thread-13/sitemap_xmap: Sitemap
> org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
> ComponentSelector could not find the component for hint: parameter
>         at
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Unkn
> own Source)
>         at

<snip-stacktrace/>

> Eduardo.

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

---------------------------------------------------------------------
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]>

Reply via email to