cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eduardo Godoy Vega" <ego...@mail.tekchile.cl>
Subject RE: [C2] Howto ... IF in sitemap ...
Date Mon, 22 Oct 2001 21:03:26 GMT
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
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSe
lector.java:51)
	at
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSe
lector.java:54)
	at
org.apache.cocoon.sitemap.SitemapComponentSelector.select(SitemapComponentSe
lector.java:54)
	at
org.apache.cocoon.www.unveil.sitemap_xmap.isSelected(sitemap_xmap.java:159)
	at
org.apache.cocoon.www.unveil.sitemap_xmap.wildcardMatchN400044(sitemap_xmap.
java:551)
	at org.apache.cocoon.www.unveil.sitemap_xmap.process(sitemap_xmap.java:358)
	at org.apache.cocoon.www.unveil.sitemap_xmap.process(sitemap_xmap.java:310)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
	at
org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400233(sitemap_xmap.java:29
82)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2310)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2212)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:116)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:495)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:534)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)



Eduardo.


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message