You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ma...@swisscom.com on 2003/07/09 16:25:17 UTC

[SUMMARY] RE: problems with authentification (Sunrise-user.xsl)

2.1. I found the problem. I didn't know why, but I had two times the
prefix with ldap, and it was closed only once... Cocoon has interpreted
the tag <authentification> like <ldap:authentification>, because my
prefix is ...xmlns="http://...LDAP/1.0"> . So the tags are with no
prefix (so I could pass them into a transformer)
But that problem is now solved. Now I always get the message "the login
is not sucessfull", and I don't know what I must change...

Thanks anyway!
Maxime


-----Original Message-----
From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de] 
Sent: Wednesday, July 09, 2003 4:22 PM
To: users@cocoon.apache.org
Subject: RE: problems with authentification (Sunrise-user.xsl)


Which version of cocoon are you using?

Carsten

> -----Original Message-----
> From: Maxime.Gheysen@swisscom.com [mailto:Maxime.Gheysen@swisscom.com]
> Sent: Wednesday, July 09, 2003 3:05 PM
> To: users@cocoon.apache.org
> Subject: problems with authentification (Sunrise-user.xsl)
> 
> 
> I have a problem with a XSL transformer, but why?
> 
> Before the transformer (log):
> =============================
> [setup] ---------------------------- [Wed Jul 09 14:55:44 CEST 2003]
> ----------------------------
> [startDocument] 
> [characters] simple
> [startElement] uri=,local=users,raw=users
> [startElement] uri=,local=user,raw=user
> [startElement] uri=,local=name,raw=name
> [characters] TFRGHM00
> [endElement] uri=,local=name,qname=name
> [startElement] uri=,local=password,raw=password
> [characters] testa
> [endElement] uri=,local=password,qname=password
> [startElement] uri=,local=role,raw=role
> [characters] admin
> [endElement] uri=,local=role,qname=role
> [startElement] uri=,local=title,raw=title
> [characters] Monsieur
> [endElement] uri=,local=title,qname=title
> [startElement] uri=,local=firstname,raw=firstname
> [characters] Maxime
> [endElement] uri=,local=firstname,qname=firstname
> [startElement] uri=,local=lastname,raw=lastname
> [characters] Gheysen
> [endElement] uri=,local=lastname,qname=lastname
> [endElement] uri=,local=user,qname=user
> [endElement] uri=,local=users,qname=users
> [endDocument] 
> 
> the xsl transformer (sunrise-user.xsl)
> =====================================
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0" 
>                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="users">
> 	<xsl:apply-templates select="user"/>
> </xsl:template>
> <xsl:template match="user">
> 	<ID><xsl:value-of select="name"/></ID>
> 	<role><xsl:value-of select="role"/></role>
> 	<data>
> 		<name><xsl:value-of select="name"/></name>
> 		<role><xsl:value-of select="role"/></role>
> 		<ID><xsl:value-of select="name"/></ID>
> 		<user><xsl:value-of select="name"/></user>
> 		<title><xsl:value-of select="title"/></title>
> 		<firstname><xsl:value-of
> select="firstname"/></firstname>
> 		<lastname><xsl:value-of select="lastname"/></lastname>
> 		<company><xsl:value-of select="company"/></company>
> 		<street><xsl:value-of select="street"/></street>
> 		<zipcode><xsl:value-of select="zipcode"/></zipcode>
> 		<city><xsl:value-of select="city"/></city>
> 		<country><xsl:value-of select="country"/></country>
> 		<phone><xsl:value-of select="phone"/></phone>
> 		<fax><xsl:value-of select="fax"/></fax>
> 		<email><xsl:value-of select="email"/></email>
> 		<bankid><xsl:value-of select="bankid"/></bankid>
> 		<bankname><xsl:value-of select="bankname"/></bankname>
> 		<accountid><xsl:value-of
> select="accountid"/></accountid>
> 	</data>    
> </xsl:template>
> </xsl:stylesheet>
> 
> after the transformer (log):
> =============================
> [setup] ---------------------------- [Wed Jul 09 14:55:44 CEST 2003]
> ----------------------------
> [startDocument] 
> [characters] simple
> 
> 
> the error
> =========
> java.lang.NullPointerException
> 	at
>
org.apache.cocoon.webapps.authentication.components.Authenticator.authen
> ticate(Authenticator.java:288)
> 	at
>
org.apache.cocoon.webapps.authentication.components.DefaultAuthenticatio
> nManager.login(DefaultAuthenticationManager.java:218)
> 	at
>
org.apache.cocoon.webapps.authentication.acting.LoginAction.act(LoginAct
> ion.java:118)
> 	at
>
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
> tTypeNode.java:133)
> ...
> 
> ---------------------------------------------------------------------
> 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