Hello everyone,

On my way to create "hello world" application with Cocoon
I hit the wall and I would like to describe my set up to
get any advice (tomcat 4.1.18; cocoon 2.0.4; and just
in case - cocoon.war was deployed and run successfully):

webapps
  test
    WEB-INF
      lib (contains all jars came with cocoon.war)
      web.xml (The main Cocoon2 servlet is added like in cocoon.war)
      cocoon.xconf
      logkit.xconf
    sitemap.xmap
    helloworld.xml
    helloworld2html.xsl

Now when I try to access http://127.0.0.1:8080/test/helloworld I
get the following:

type        - fatal
message     - UnnamedSelector: ComponentSelector could not find the
component for hint [file]
description - org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint
[file]
sender      - org.apache.cocoon.servlet.CocoonServlet
source      - Cocoon servlet


sitemap.xmap is very simple:

<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 name="wildcard"
src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
  </map:matchers>

</map:components>

<map:pipelines>

  <map:pipeline>
    <map:match pattern="helloworld">
      <map:generate src="helloworld.xml"/>
      <map:transform src="helloworld2html.xsl"/>
      <map:serialize/>
    </map:match>
  </map:pipeline>

</map:pipelines>


Any help is very appreciated.

Thank you for your time,
Yuriy ZUbarev





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to