cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bartosz Matuszczak" <pryszc...@poczta.onet.pl>
Subject Sunrise getting context - problem
Date Sat, 25 Jan 2003 18:18:13 GMT
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>


Mime
View raw message