Yes, it's why at the beginning I protected my page with both
applications to have the portal generator still access to the auth
context and have the action to access to the myapp context.
But it was the same, I got a NPE.
Thanks for your help.
Laurent
   <map:match pattern="portal">
       <map:act type="auth-protect">
           <map:parameter name="handler" value="portalhandler" />
HERE       <map:parameter name="application" value="portal" />
HERE       <map:parameter name="application" value="myapp" />
           <map:act type="xsp-action" src="myAction.xsp">
            <map:generate type="portal" label="content">
               <map:parameter name="portal-name" value="portal" />
            </map:generate>
            <map:transform src="{global:skin}styles/portal-page.xsl"
            <map:transform type="cinclude" />
            <map:transform type="encodeURL" />
            <map:serialize type="html" />
           </map:act>
        <map:redirect-to uri="logout"/>
       </map:act>
    </map:match>

> -----Message d'origine-----
> De�: Carsten Ziegeler [mailto:[EMAIL PROTECTED]
> Envoy�: vendredi 7 novembre 2003 14:39
> ��: [EMAIL PROTECTED]
> Objet�: RE: RE : [portal] NPE when using more than 1 applications
> 
> Laurent Trillaud wrote:
> 
> > -----Original Message-----
> > From: Laurent Trillaud [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 07, 2003 1:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE : [portal] NPE when using more than 1 applications
> >
> >
> > Ooops, you're right. It's
> > Caused by: java.lang.NullPointerException
> >     at
> >
org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager.loadP
> > rofile(AuthenticationProfileManager.java:123)
> >     at
> >
org.apache.cocoon.portal.profile.impl.AbstractUserProfileManager.getPort
> > alLayout(AbstractUserProfileManager.java:327)
> > Laurent
> >
> Ok, I think I found the problem. You have two applications, and you
> configure for one of them the portal. You have to use this application
> in the auth-protect action for the portal pipeline, because the
> portal looks into "current" application for the portal configuration
> but doesn't find it - as it's configured in the other one.
> 
> HTH
> Carsten
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to