Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring webflow can't access mvc beans
    primarykey
    data
    text
    <p>I'm trying to use some @Service annotated classes (yes, using the mvc:annotation-driven) within the following Web flow : </p> <h3><em>manage-flow.xml</em></h3> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;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" &gt; &lt;view-state id="start" view="Userview.jsp" &gt; &lt;on-render&gt; &lt;set name="flowScope.users" value="UserService.getUsers()"&gt; &lt;/set&gt; &lt;/on-render&gt; &lt;/view-state&gt; &lt;bean-import resource="Manage-Beans.xml"/&gt; &lt;/flow&gt; </code></pre> <h3><em>Manage-Beans.xml</em></h3> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;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"&gt; &lt;bean class="com.dproductions.test.Service.SiteService" id="SiteService" /&gt; &lt;bean class="com.dproductions.test.Service.CustomerService" id="CustomerService" /&gt; &lt;bean class="com.dproductions.test.Service.UserService" id="UserService" /&gt; &lt;/beans&gt; </code></pre> <p>When attempting to reach the flow I get the following stacktrace : http: //pastebin.com/QmCXe45Y</p> <p>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.</p> <p>Any suggestion is welcome.</p> <p>Besides, my servlet-context is found here : <a href="http://pastebin.com/2HHvDRUK" rel="nofollow">Servlet-context</a></p> <p>I've been fighting this for over a week now.</p> <p><em>Edit</em></p> <p>I want to be able to use my beans the way they are used at <a href="http://www.javabeat.net/2010/10/introduction-to-spring-web-flow-swf/2/" rel="nofollow">This Example</a> , 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 ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload