cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stevens" <at...@hotmail.com>
Subject Re: "auth-login" not defined for "act"
Date Tue, 04 Apr 2006 23:33:46 GMT
>From: Peter Flynn <peter@silmaril.ie>
>Date: Tue, 04 Apr 2006 20:03:56 +0100
>
>I added
>
>   <map:action name="auth-login"
>   src="org.apache.cocoon.webapps.authentication.acting.LoginAction"/>
>
>to the <map:components> section of my sitemap

Inside the <map:actions>, right?

>but I'm still getting the
>same error:
>
>>> > Message: Type 'auth-login' is not defined for 'act' at
>>> > file:/home/peter/tomcat/webapps/ROOT/sitemap.xmap:554:29

All I can suggest is building Cocoon with the samples and authentication-fw 
block enabled (which I believe is the default anyway) and compare the 
sitemap(s) with your own.  The one in the sitemap root has the action 
declarations, and the one in samples/blocks/authentication-fw is where it's 
used.  If that all looks the same, try in cocoon.xconf (there may be some 
configuration for authentication-related components in there), and failing 
that start re-copying in the jars from the fresh Cocoon build into your 
application (cocoon-authentication-fw-block.jar, obviously, but also 
cocoon-2.1.x.jar as there's an authentication-manager component role defined 
in the cocoon.roles file in there).

Beyond that, I can't be much help as I don't actually use that block myself.


Andrew.

>>>
>>>where the relevant lines say:
>>>
>>>553:  <map:match pattern="authtest">
>>>554:    <map:act type="auth-login">
>>>555:      <map:parameter name="handler" value="epuauth"/>
>>>556:      <map:parameter name="parameter_username"
>>>557:        value="{request-param:username}"/>
>>>558:      <map:parameter name="parameter_password"
>>>559:        value="{request-param:password}"/>
>>>560:      <map:redirect-to uri="doc/webmaster"/>
>>>561:    </map:act>
>>>562:    <map:generate src="welcome.xml"/>
>>>563:    <map:transform src="webpages.xsl"/>
>>>564:    <map:serialize type="xhtml"/>
>>>566:  </map:match>
>>>
>>>Why isn't the token "auth-login" being recognised?



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


Mime
View raw message