Daniel,
That worked !! thanks... 
How can i access the Spring Application Context in the wicket
MyApplicationWebSession (extends AuthenticatedWebSession) to retrieve the
bean and set the user name and password.
Ravi




Daniel Stoch-2 wrote:
> 
> Have you defined RequestContextListener in your web.xml? It is
> required for request scope and session scope beans:
> 
>       <listener>
>               <listener-class>
>                       
> org.springframework.web.context.request.RequestContextListener
>               </listener-class>
>       </listener>     
> 
> Daniel
> 
> On Dec 14, 2007 7:36 AM, Ravi_116 <[EMAIL PROTECTED]> wrote:
>>
>>
>> Caused by: org.springframework.beans.factory.BeanCreationException: Error
>> creating bean with name 'inquiryEngine' defined in class path resource
>> [lingo-context.xml]: Cannot resolve reference to bean 'userContext' while
>> setting bean property 'userContext'; nested exception is
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean
>> with name 'userContext': Scope 'session' is not active for the current
>> thread; consider defining a scoped proxy for this bean if you intend to
>> refer to it from a singleton; nested exception is
>> java.lang.IllegalStateException: No thread-bound request found: Are you
>> referring to request attributes outside of an actual web request? If you
>> are
>> actually operating within a web request and still receive this
>> message,your
>> code is probably running outside of DispatcherServlet/DispatcherPortlet:
>> In
>> this case, use RequestContextListener or RequestContextFilter to expose
>> the
>> current request.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-Spring-beans-with-session-scope-tp14327328p14339710.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to