cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Brockway <>
Subject sunRise-login problems
Date Tue, 21 Jan 2003 17:37:22 GMT
Hello cocoon experts, newbie here stumbling through getting an initial
webapp started.  I have been trying to get the sunRise auth to work with
cocoon v 2.0.3 and jdk 1.3.1.  I can't seem to get the "sunRise-login" to
work properly?!?!?  The redirects to the login page, and the logout all seem
to work as expected.

When I attempt to access a protected resource I appropriately get redirected
to my login page, I attempt to login (submits to foo-login) and I get the
following errors that a resource isn't available

type resource-not-found
message Resource not found
description The requested URI "/internal/foo-login" was not found.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet

Here is the foo-login match statement:

    <map:match pattern="foo-login">
      <map:act type="sunRise-login">
        <map:parameter name="handler" value="foo-handler"/>
        <map:parameter name="parameter_name" value="request:name"/>
        <map:parameter name="parameter_password" value="request:password"/>
        <map:redirect-to uri="foo-protected"/>
      <!-- authentication failed: -->
      <map:generate src="login-failed.xml"/>
      <map:transform src="login-failed.xsl"/>

If I change the "sunRise-login" to "sunRise-logout" no errors, it goes in a
big circle because it's not authenticating.  I'm guessing that I'm missing a
parameter somewhere, I've followed the example from
s.html as closely as possible, but no luck.

Here are the interesting action defs in the parent sitemap.xconf:

    <map:action name="sunRise-auth"
        <handler name="foo-handler"
          <redirect-to uri="cocoon://foo-loginpage"/>
          <authentication uri="cocoon:raw://foo-authuser" />

    <map:action name="sunRise-login"
    <map:action name="sunRise-logout"
    <map:action name="sunRise-loggedIn"

Thanks in advance, any help would be greatly appreciated from others who
have successfully done this, I can forward the other parts of the conf as


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message