You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christoph Kliemt <ch...@entici.de> on 2004/10/13 16:39:18 UTC

Re: PipelineAuthenticator

hi!

Paul Joseph <pj...@yahoo.com> writes:

> Hi,
>
> I am trying to use the PipelineAuthenticator provided in the
> authentication-fw block, but am getting a NPE.

[... exception snipped ...]


> org.apache.cocoon.webapps.authentication.components.
> WebTaskAuthenticator.authenticate(WebTaskAuthenticator.java:178)

What is this? I did not find this class in cocoons sources...?

hth christoph


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


Re: PipelineAuthenticator

Posted by Christoph Kliemt <ch...@entici.de>.
Paul Joseph <pj...@yahoo.com> writes:

> Oops.  I copied the PipelineAuthenticaor, added a db call to validate
> the uname/pwd and called my modified file WebTaskAuthenticator.
>
> Apart from that it it identical (promise!) to PipelineAuthenticator!

Hmm...? Does not make sense to me.

Maybe this can help?

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109577371304725&w=2

btw: the DOMUtil in question is org.apache.cocoon.xml.dom.DOMUtil, not
the one from xerces.

hth christoph

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


Re: PipelineAuthenticator

Posted by Paul Joseph <pj...@yahoo.com>.
I found the immediate cause of the error - 

the "authenticationResourceName" is null in the call
        final String authenticationResourceName =
configuration.getAuthenticationResource();

and hence the call below fails:
 source = SourceUtil.getSource
authenticationResourceName, null,              
parameters, this.resolver);

This begs the question of how does the
authenticationResourceName get set, so that
configuration.getAuthenticationResource() returns the
correct value?

thx
Paul

--- Paul Joseph <pj...@yahoo.com> wrote:

> Oops.  I copied the PipelineAuthenticaor, added a db
> call to validate the uname/pwd and called my
> modified
> file WebTaskAuthenticator.
> 
> Apart from that it it identical (promise!) to
> PipelineAuthenticator!
> 
> thx
> Paul
> --- Christoph Kliemt <ch...@entici.de>
> wrote:
> 
> > hi!
> > 
> > Paul Joseph <pj...@yahoo.com> writes:
> > 
> > > Hi,
> > >
> > > I am trying to use the PipelineAuthenticator
> > provided in the
> > > authentication-fw block, but am getting a NPE.
> > 
> > [... exception snipped ...]
> > 
> > 
> > >
> >
> org.apache.cocoon.webapps.authentication.components.
> > >
> >
>
WebTaskAuthenticator.authenticate(WebTaskAuthenticator.java:178)
> > 
> > What is this? I did not find this class in cocoons
> > sources...?
> > 
> > hth christoph
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:
> > users-help@cocoon.apache.org
> > 
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 
> 


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


Re: PipelineAuthenticator

Posted by Paul Joseph <pj...@yahoo.com>.
Oops.  I copied the PipelineAuthenticaor, added a db
call to validate the uname/pwd and called my modified
file WebTaskAuthenticator.

Apart from that it it identical (promise!) to
PipelineAuthenticator!

thx
Paul
--- Christoph Kliemt <ch...@entici.de>
wrote:

> hi!
> 
> Paul Joseph <pj...@yahoo.com> writes:
> 
> > Hi,
> >
> > I am trying to use the PipelineAuthenticator
> provided in the
> > authentication-fw block, but am getting a NPE.
> 
> [... exception snipped ...]
> 
> 
> >
> org.apache.cocoon.webapps.authentication.components.
> >
>
WebTaskAuthenticator.authenticate(WebTaskAuthenticator.java:178)
> 
> What is this? I did not find this class in cocoons
> sources...?
> 
> hth christoph
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 
> 


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