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]

Reply via email to