Hello!
You haven't <map:selectors> element in <map:components>.
Copy whole components tree from sub/sitemap.xmap (example shipped with
cocoon2) to be sure.
I hope that will be helpful.
 
Marcin
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 25, 2002 5:59 PM
To: [EMAIL PROTECTED]
Subject: very simple sitemap

Hallo!

What's wrong with this very simple sitemap?

<?xml version="1.0" encoding="UTF-8"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:generators default="file">
<map:generate name="file" src="org.apache.cocoon.generation.FileGenerator" />
</map:generators>
<map:transformers default="xslt">
<map:transformer name="xslt" src="org.apache.cocoon.transformation.TraxTransformer" />
</map:transformers>
<map:serializers default="html">
<map:serializer name="html" src="org.apache.cocoon.serialization.HTMLSerializer" mime-type="text/html" />
</map:serializers>
<map:matchers default="wildcard">
<map:matcher logger="sitemap.matcher.wildcard" name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
</map:matchers>
</map:components>
<map:pipelines>
<map:pipeline>
<map:match pattern="hello">
<map:generate src="hello/helloworld.xml"/>
<map:transform src="hello/helloworld2html.xsl"/>
<map:serialize/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>

I get the error:
Error in sitemap configuration : UnnamedSelector: ComponentSelector could not find the component for hint: wildcard

description org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : UnnamedSelector: ComponentSelector could not find the component for hint: wildcard

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : UnnamedSelector: ComponentSelector could not find the component for hint: wildcard
   at org.apache.cocoon.www.sitemap_xmap.configure(D:\jakarta\jakarta-tomcat-4.0.4-b3\work\Standalone\localhost\cocoon2\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:148)
   at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
   at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
   at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
   at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:332)
   at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:291)
   at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
   at java.lang.Thread.run(Thread.java:479)

Thanks,

Hans

Reply via email to