Chris,

Thank you for your following response. My class defined through spring
applicationContext, and accidentally when doing refactoring of this
applicationContext, some configuration in web.xml also affected. After
fixing this config, everything just fine now.


On Wed, Jun 29, 2011 at 1:46 AM, Christian Köberl <
tapestry.christian.koeb...@gmail.com> wrote:

> On 2011-06-27 13:35, Rendy Tapestry wrote:
>
>> I was follow the instruction here
>> http://tapestry.apache.org/**integrating-with-spring-**framework.html<http://tapestry.apache.org/integrating-with-spring-framework.html>
>> to integrate spring with tapestry.
>>
>> I have one special class that implement Spring's ApplicationContextAware.
>> But when application starting it never invoke
>> setApplicationContext(**ApplicationContext ctx) method. So when my
>> application
>> requiring the class to find specified bean, the program throw null pointer
>> exception.
>>
>
> Is your class a Tapestry service (bound via Module class) or a Spring bean
> (defined in Spring applicationContext.xml)? ApplicationContextAware won't
> work in Tapestry services.
>
> --
> Chris
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to