The problem seems to be how XFire works with spring's session scoped beans.
In my stack trace this line are interesting.

at org.codehaus.xfire.spring.SpringUtils.getUserTarget(SpringUtils.java:21)
        at
org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping.processBeans(Jsr181HandlerMapping.java:117)
        at
org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping.initApplicationContext(Jsr181HandlerMapping.java:65)


Furthermore if I comment all xfire config from web.xml it works fine. Any
ideas how to resolve this? Is XFire not aware of session scoped beans?


stelios wrote:
> 
> Hi,
> 
> I'm trying to use a session scoped bean with the following configuration:
> 
>       <bean id="userWorkspace" class="xxx.xxxx.xxx.webapp.UserWorkspaceImpl"
> scope="session">
>               <!--  this next element effects the proxying of the surrounding 
> bean -->
>               <aop:scoped-proxy/>
>               <property name="projectDao" ref="projectDao"/>
>               <property name="userDao" ref="userDao"/>
>       </bean>
> 
> Now that works only if I place it in dispatcher-servlet.xml or I turn the
> debug level of spring to DEBUG.
> Else it gives me:  java.lang.IllegalStateException: No thread-bound
> request found: Are you referring..... 
> I can post the trace if needed. 
> 
> I have the ContextLoaderListener, and RequestContextListener Listener set
> in web.xml so I can't think of what else is wrong...
> 
> Any help appreciated
> 
> thanks
> stelios
> 

-- 
View this message in context: 
http://www.nabble.com/Spring-Sesison-Scope-bean-tp19651582s2369p19721858.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


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

Reply via email to