You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Yuriy Zubarev <yu...@yahoo.ca> on 2003/03/31 01:37:30 UTC

problems with first web app

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


RE: problems with first web app

Posted by Yuriy Zubarev <yu...@yahoo.ca>.
Thank you, that was the exact reason for failure.
I blindly copied that portion of config file from
"Cocoon: Building XML Applications" book and it
seems to have a misprint then.

Yuriy ZUbarev

-----Original Message-----
From: Geoff Howard [mailto:cocoon@leverageweb.com]
Sent: March 30, 2003 5:25 PM
To: cocoon-users@xml.apache.org
Subject: RE: problems with first web app


> -----Original Message-----
> From: Yuriy Zubarev [mailto:yuriy_zubarev@yahoo.ca]
> Sent: Sunday, March 30, 2003 6:38 PM
> To: cocoon-users@xml.apache.org
> Subject: problems with first web app
> 
> 
> Hello everyone,
> 

<snip/>

> sitemap.xmap is very simple:
> 
> <map:components>
> 
>   <map:generators default="file">
>     <map:generate name="file"
> src="org.apache.cocoon.generation.FileGenerator"/>

It's map:generator here, map:generate below in the pipeline.

HTH,
Geoff Howard

 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


RE: problems with first web app

Posted by Geoff Howard <co...@leverageweb.com>.
> -----Original Message-----
> From: Yuriy Zubarev [mailto:yuriy_zubarev@yahoo.ca]
> Sent: Sunday, March 30, 2003 6:38 PM
> To: cocoon-users@xml.apache.org
> Subject: problems with first web app
> 
> 
> Hello everyone,
> 

<snip/>

> sitemap.xmap is very simple:
> 
> <map:components>
> 
>   <map:generators default="file">
>     <map:generate name="file"
> src="org.apache.cocoon.generation.FileGenerator"/>

It's map:generator here, map:generate below in the pipeline.

HTH,
Geoff Howard

 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org