Ok, I'm not sure, but I think you can't lookup the SessionManager in your compose() method. Try it in your select() method of the Selector Interface. That should work (I hope).
Carsten > -----Original Message----- > From: Jan Bromberger [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 05, 2002 4:05 PM > To: [EMAIL PROTECTED] > Subject: Re: No SesionManager provided for Seleector? > > > > > This should work, you can get a SessionManager from the > > ComponentManager. > > > > What/how do you exactly try? > > public void compose(final ComponentManager componentManager) throws > ComponentException { > this.componentManager = componentManager; > this.sessionManager = (SessionManager) > componentManager.lookup(SessionManager.ROLE); > } > > The stacktrace says: > org.apache.avalon.framework.component.ComponentException: Could not find > component > at > org.apache.avalon.excalibur.component.ExcaliburComponentManager.lo > okup(Excal > iburComponentManager.java:367) > at > org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonC > omponentMa > nager.java:227) > at > org.apache.avalon.excalibur.component.DefaultComponentFactory$Comp > onentManag > erProxy.lookup DefaultComponentFactory.java:314) > ... > > Cheers, > Jan > > > -----Original Message----- > > From: Jan Bromberger [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, September 05, 2002 3:47 PM > > To: [EMAIL PROTECTED] > > Subject: No SesionManager provided for Seleector? > > > > > > I intend to write a SessionContextSelector and tried to use a > SessionManager > > just like the SessionTransformer does. But it seems that there is no > > SessionManager provided to a Selector while a Transformer gets one. > > Am I right? > > Why is that so? > > And: Has anybody a suggestion for a workaround? > > > > Cheers, > > Jan > > > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>