-
Nov 25th, 2010, 07:13 PM
#1
No adapter for handler org.springframework.webflow.executor.mvc.FlowContr oller
Hi, I am quite new for SPRING MVC and WEB FLOW.
I am trying to use Spring Web flow but its configuration with MVC is not working. I dont get any error in compile time but when I run this on Tomcat I get the following error when I access /flow.htm
SEVERE: Servlet.service() for servlet [library] in context with path [/Library] threw exception [No adapter for handler [org.springframework.webflow.executor.mvc.FlowContr oller@ec898a]: Does your handler implement a supported interface like Controller?] with root cause
javax.servlet.ServletException: No adapter for handler [org.springframework.webflow.executor.mvc.FlowContr oller@ec898a]: Does your handler implement a supported interface like Controller?
at org.springframework.web.servlet.DispatcherServlet. getHandlerAdapter(DispatcherServlet.java:1091)
at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:874)
at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:203)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:558)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:379)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:242)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:259)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:237)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProce ssor.run(JIoEndpoint.java:281)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
my url mapping is below
<bean id="simpleUrlMappling"
class="org.springframework.web.servlet.handler.Sim pleUrlHandlerMapping">
<property name="mappings">
<props>
<prop key="/home.htm">homePageController</prop>
<prop key="/booksForPublisher.htm">booksForPublisher</prop>
<prop key="/addPublisher.htm">addPublisherController</prop>
<prop key="/feedback.htm">registerMemberController</prop>
<prop key="/flow.htm">flowController</prop>
</props>
</property>
</bean>
<bean id="flowController" class="org.springframework.webflow.executor.mvc.Fl owController">
<property name="flowExecutor" ref = "flowExecutor" />
</bean>
The first four in the mapping list are MVC controllers who run without any problem but the last one is WebFlow Contorller which brings out the problem.
The relevant declarations to this controller are as following.
<flow:executor id = "flowExecutor" registry-ref="flowRegistry" />
<flow:registry id = "flowRegistry">
<flow:location path="/WEB-INF/flows/**/*-flow.xml"/>
</flow:registry>
and
<?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-1.0.xsd">
<var name = "order" class = "com.springinaction.pizza.domain.Order" scope="flow" />
<start-state idref="askForPhoneNumber"/>
<end-state id="finish" view="orderComplete"/>
<view-state id="askForPhoneNumber">
<transition on="submit" to="lookUpCustomer" />
</view-state>
</flow>
Can any one help me please. I am stuck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules