cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bartosz Matuszczak" <>
Subject Sunrise getting context - problem
Date Sat, 25 Jan 2003 18:18:13 GMT
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:match pattern="mach2">
       <map:generate src="cocoon://mach1"/>

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 ?



Chcesz oszczedzic na kosztach obslugi bankowej ?
mBIZNES - konto dla firm

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