I'm trying to use some @Service annotated classes (yes, using the mvc:annotation-driven) within the following Web flow :
manage-flow.xml
<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow
http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd" start-state="start" >
<view-state id="start" view="Userview.jsp" >
<on-render>
<set name="flowScope.users"
value="UserService.getUsers()">
</set>
</on-render>
</view-state>
<bean-import resource="Manage-Beans.xml"/>
</flow>
Manage-Beans.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean class="com.dproductions.test.Service.SiteService" id="SiteService" />
<bean class="com.dproductions.test.Service.CustomerService" id="CustomerService" />
<bean class="com.dproductions.test.Service.UserService" id="UserService" />
</beans>
When attempting to reach the flow I get the following stacktrace : http: //pastebin.com/QmCXe45Y
Which comes down to the Webflow not being able to access the specified package(s). But it doesn't give a 'ClassNotFoundException' , which is sort of puzzling to me.
Any suggestion is welcome.
Besides, my servlet-context is found here : Servlet-context
I've been fighting this for over a week now.
Edit
I want to be able to use my beans the way they are used at This Example , at the action states, the beans being picked up/managed directly by Spring MVC . Do the beans have to be declared (and serializable?) in the applicationcontext ? Using xml-notation ?