次の Web フロー内で @Service 注釈付きクラスを使用しようとしています (はい、mvc:annotation-driven を使用)。
管理フロー.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>
管理 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>
フローに到達しようとすると、次のスタックトレースが表示されます: http://pastebin.com/QmCXe45Y
これは、指定されたパッケージにアクセスできないWebflowに帰着します。しかし、それは 'ClassNotFoundException' を与えません。これは私にはちょっと不可解です。
どんな提案でも大歓迎です。
その上、私のサーブレットコンテキストはここにあります:サーブレットコンテキスト
私は今、1週間以上これと戦っています。
編集
This Exampleで使用されている方法で、アクション状態で Bean を使用できるようにしたいと考えています。Bean は Spring MVC によって直接ピックアップ/管理されています。Bean は applicationcontext で宣言 (およびシリアル化可能) する必要がありますか? xml-notation を使用していますか?