cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Dulisch" <mduli...@s-und-n.de>
Subject Re: Sunrise getting context - problem
Date Mon, 27 Jan 2003 08:33:37 GMT
Hi Bartosz,

which version of Cocoon are you running? It should run in 2.0.4. Older
versions had a problem with calling a protected pipeline from an
unprotected.

In your 'match1' pipeline you have the transform before the generate.
I think this should be in a different order.

Martin

----- Original Message -----
From: "Bartosz Matuszczak" <pryszczol@poczta.onet.pl>
To: <cocoon-users@xml.apache.org>
Sent: Saturday, January 25, 2003 7:18 PM
Subject: Sunrise getting context - problem


> Hi
> I have 2 maches in sitemap:
>
> <map:match pattern="mach1">
>      <map:act type="sunRise-loggedIn">  <!-- check
authentication -->
>         <map:parameter name="handler" value="Einformatyka"/>
>               <map:act type="sunRise-auth"> <!-- Access to sunrise
> context -->
>                        <map:parameter name="handler"
value="Einformatyka"/>
>                         <map:transform type="sunShine"/>
>                         <map:generate src="get-data.xml"/>
>            </map:act>
>        </map:act>
>        <map:serialize/>
>   </map:match>
>
>   <map:match pattern="mach2">
>        <map:generate src="cocoon://mach1"/>
>      <map:serialize/>
>   </map:match>
>
> get-data.xml  contains: <sunshine:getxml context="sunRise"
> path="/authentication/ID"/>  to retrieve user Id from sunrise
context.
> When i'm logged  in and call "mach1" from browser everything goes
fine and i
> receive insted of  <sunshine:getxml context="sunRise"
> path="/authentication/ID"/> current user ID.
> But when i call  "mach2" from browser  this error is caused
> Cocoon 2 - Internal server error
>
> --------------------------------------------------------------------
--------
> ----
>
> type fatal
>
> message Failed to execute pipeline.
>
> description org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.: java.lang.IllegalArgumentException:
> sunShine.streamContextFragment: Context 'sunRise' not found.
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
>
> Why it is so ?  Why when mach2 is called from mach1 this exception
throws.
> This same error get I when i try to call mach 1 from browser but
without
> <map:act type="sunRise-auth">  action.
> any ideas ?
>
> Bye
>         Bartek
>
>
>
>
> ***************r-e-k-l-a-m-a**************
>
> Chcesz oszczedzic na kosztach obslugi bankowej ?
> mBIZNES - konto dla firm
> http://epieniadze.onet.pl/mbiznes
>
> --------------------------------------------------------------------
-
> Please check that your question  has not already been answered in
the
> FAQ before posting.
<http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:
<cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:
<cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message