You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Mats Norén <ma...@spectral.se> on 2001/01/17 17:13:56 UTC
Could not find component for hint 'sitemap'
I get this strange error when I try to start C2
DEBUG 451 [cocoon ] (Thread-24): DefaultComponentManager returned
instance for role org.apache.cocoon.Cocoon.
ERROR 451 [cocoon ] (Thread-24): Could not find component for
hint 'sitemap'.
ERROR 451 [cocoon ] (Thread-24): Error compiling sitemap
org.apache.avalon.ComponentNotFoundException: Could not find component
for hint 'sitemap'.
at
org.apache.cocoon.CocoonComponentSelector.select(CocoonComponentSelector.java:105)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:136)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:162)
Never seen it before, any suggestions?
/Regards Mats
Re: Sitemap question
Posted by Mats Norén <ma...@spectral.se>.
Ok, that works!
The thing is that I wanted to do a redirect inside the sitemap to another
matching rule depending on if the user is logged in or not.
Doesn´t the filegenerator src-attribute point towards a file and not an url?
/Mats
Giacomo Pati wrote:
> Mats Norén wrote:
> >
> > More questions ;-)
> > I would like to be able to use my login-action to switch between two
> > different urls based on if the user has logged in or not.
> > I guess I could use a selector based version instead but I'm just curious
> > why the following doesn't work:
> >
> > <map:match pattern="subscribe/login.html">
> > <map:act type="login">
> > <parameter name="logged_in" value="/cocoon/forms"/>
> > <parameter name="not_logged_in" value="/cocoon/welcome"/>
> > </map:act>
> > <map:redirect-to uri="{uri}"/>
> > </map:match>
>
> Try it this way (there is no substitution of values in the uri attribute
> of the redirect-to element):
>
> <map:match pattern="subscribe/login.html">
> <map:act type="login">
> <parameter name="logged_in" value="forms.xml"/>
> <parameter name="not_logged_in" value="welcome.xml"/>
> <map:generate src="{uri}"/>
> </map:act>
> </map:match>
>
> Giacomo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Sitemap question
Posted by Giacomo Pati <gi...@apache.org>.
Mats Norén wrote:
>
> More questions ;-)
> I would like to be able to use my login-action to switch between two
> different urls based on if the user has logged in or not.
> I guess I could use a selector based version instead but I'm just curious
> why the following doesn't work:
>
> <map:match pattern="subscribe/login.html">
> <map:act type="login">
> <parameter name="logged_in" value="/cocoon/forms"/>
> <parameter name="not_logged_in" value="/cocoon/welcome"/>
> </map:act>
> <map:redirect-to uri="{uri}"/>
> </map:match>
Try it this way (there is no substitution of values in the uri attribute
of the redirect-to element):
<map:match pattern="subscribe/login.html">
<map:act type="login">
<parameter name="logged_in" value="forms.xml"/>
<parameter name="not_logged_in" value="welcome.xml"/>
<map:generate src="{uri}"/>
</map:act>
</map:match>
Giacomo
Sitemap question
Posted by Mats Norén <ma...@spectral.se>.
More questions ;-)
I would like to be able to use my login-action to switch between two
different urls based on if the user has logged in or not.
I guess I could use a selector based version instead but I'm just curious
why the following doesn't work:
<map:match pattern="subscribe/login.html">
<map:act type="login">
<parameter name="logged_in" value="/cocoon/forms"/>
<parameter name="not_logged_in" value="/cocoon/welcome"/>
</map:act>
<map:redirect-to uri="{uri}"/>
</map:match>
Everything works up to the redirect part. Am I using the wrong way of
retrieving the uri value from the Map?
btw, the value of uri in my LoginAction is set correctly.
/Mats
Re: Could not find component for hint 'sitemap'
Posted by Mats Norén <ma...@spectral.se>.
Thanks! Works now..took the latest source from CVS but forgot to update my
webapp-catalog..
Mats
Paul Russell wrote:
> * Mats Nor?n (mats.noren@spectral.se) wrote :
> > I get this strange error when I try to start C2
>
> Make sure you're using the latest version of the cocoon.xconf file from
> the ditribution, and make sure you do a build clean before compiling.
>
> Paul
>
> --
> Paul Russell Email: paul@luminas.co.uk
> Technical Director Tel: +44 (0)20 8553 6622
> Luminas Internet Applications Fax: +44 (0)870 28 47489
> This is not an official statement or order. Web: www.luminas.co.uk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
Re: Could not find component for hint 'sitemap'
Posted by Paul Russell <pa...@luminas.co.uk>.
* Mats Nor?n (mats.noren@spectral.se) wrote :
> I get this strange error when I try to start C2
Make sure you're using the latest version of the cocoon.xconf file from
the ditribution, and make sure you do a build clean before compiling.
Paul
--
Paul Russell Email: paul@luminas.co.uk
Technical Director Tel: +44 (0)20 8553 6622
Luminas Internet Applications Fax: +44 (0)870 28 47489
This is not an official statement or order. Web: www.luminas.co.uk