Hi im currently evaluating s2 and now trying to get the scope attr work in s2
and spring2.
Tried all in the previous post
http://www.nabble.com/Struts2-and-spring2-fails%2C-adding-RequestContextFilter-Listener-doesnt-work.-tf2872182.html#a8031133
scope post
And i still got the same exception.
now i got:
web.xml
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener</listener-class>
</listener> <!-- the plugin -->
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener</listener-class>
</listener><!-- for the scope attr -->
and
struts.xml
<constant name="struts.objectFactory" value="spring" />
i wonder if my jars dependencys are incorrect? currently i include theese
ones:
spring-beans-2.0.6
spring-context-2.0.6
spring-core-2.0.6
struts2-spring-plugin-2.0.6
and running s2 2.0.6 core
When running the test action (the action is spring controlled, and injected
by otherbeans) it works but is it under a web scope ?
Exception snippet output:
[10:39:21,353 DEBUG [XmlConfigurationProvider.debug] Action verification
cause
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'hellospring':
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 reque
st? If you are actually operating within a web request and still receive
this message,your code is pr
obably running outside of DispatcherServlet/DispatcherPortlet: In this case,
use RequestContextListen
er or RequestContextFilter to expose the current request.]
please help me out :)
thanks
Regards Rille
--
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)