On 4/12/07, Grzegorz Kossakowski <[EMAIL PROTECTED]> wrote:
Lally Singh napisaĆ(a):
>
> Which also begs the question, where do I get the Spring context for
> loading the CocoonSourceResolver? I was using
> o.a.c.spring.configurator.WebAppContextUtils.getCurrentWebApplicationContext,
>
> but that doesn't work, complaining about "No WebApplicationContext
> found", which I suspect is probably b/c the WebAppContext isn't set up
> yet (it's still loading up my beans).
I've tried to create simple singleton bean with
org.apache.excalibur.source.SourceResolver sourceResolver property. In bean
configuration I put:
<property name="sourceResolver"
ref="org.apache.excalibur.source.SourceResolver"/>
and it works. I suggest to do the same.
Thanks! much appreciated!