You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by peter <pe...@silmaril.ie> on 2006/03/28 10:28:17 UTC

"auth-login" not defined for "act"

I'm getting the following error:

> Internal Server Error
>
> Message: Type 'auth-login' is not defined for 'act' at 
> file:/home/peter/tomcat/webapps/ROOT/sitemap.xmap:554:29

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?

///Peter


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


Re: "auth-login" not defined for "act"

Posted by Peter Flynn <pe...@silmaril.ie>.
Andrew Stevens wrote:

> Do you have a corresponding
>    <map:action name="auth-login" 
> src="org.apache.cocoon.webapps.authentication.acting.LoginAction"/>
> definition in the <map:components> section of your sitemap?

I didn't but I do now...but the result is unchanged: the same error.
Where else should I be looking?

///Peter

 >> From: "peter" <pe...@silmaril.ie>
 >> Date: Tue, 28 Mar 2006 08:28:17 +0000
 >>
 >> I'm getting the following error:
 >>
 >> > Internal Server Error
 >> >
 >> > Message: Type 'auth-login' is not defined for 'act' at
 >> > file:/home/peter/tomcat/webapps/ROOT/sitemap.xmap:554:29
 >>
 >> 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


Re: "auth-login" not defined for "act"

Posted by Peter Flynn <pe...@silmaril.ie>.
Andrew Stevens wrote:
>> From: "peter" <pe...@silmaril.ie>
>> Date: Tue, 28 Mar 2006 08:28:17 +0000
>>
>> I'm getting the following error:
>>
>> > Internal Server Error
>> >
>> > Message: Type 'auth-login' is not defined for 'act' at
>> > file:/home/peter/tomcat/webapps/ROOT/sitemap.xmap:554:29
>>
>> 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?
> 
> Do you have a corresponding
>    <map:action name="auth-login" 
> src="org.apache.cocoon.webapps.authentication.acting.LoginAction"/>
> definition in the <map:components> section of your sitemap?

Aha. Probably not...I was just following the documentation and it
doesn't mention that. I'll go check (away from site right now).
Many thanks.

///Peter


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


RE: "auth-login" not defined for "act"

Posted by Andrew Stevens <at...@hotmail.com>.
>From: "peter" <pe...@silmaril.ie>
>Date: Tue, 28 Mar 2006 08:28:17 +0000
>
>I'm getting the following error:
>
> > Internal Server Error
> >
> > Message: Type 'auth-login' is not defined for 'act' at
> > file:/home/peter/tomcat/webapps/ROOT/sitemap.xmap:554:29
>
>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?

Do you have a corresponding
    <map:action name="auth-login" 
src="org.apache.cocoon.webapps.authentication.acting.LoginAction"/>
definition in the <map:components> section of your sitemap?


Andrew.



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