I can't figure out why I'm getting this exception. I'm trying to write a very simple sample application with 2 pages; the first is a form and the second displays the results of the first.
I'd be grateful if someone could look at this and tell me what I'm doing wrong. I can't even get the first page to display.
Thanks.
This is the class it's complaining about:org.springframework.web.flow.ActionExecutionExcept ion: Exception thrown executing action 'waitlist.view.AdminSignInViewSetup@4d8d50' in state 'adminSignInViewSetup' of flow 'adminSignInFlow'; nested exception is org.springframework.util.DispatchMethodInvoker$Met hodLookupException: Unable to resolve action method with name 'adminSignInViewSetup' and signature 'public org.springframework.web.flow.Event adminSignInViewSetup(interface org.springframework.web.flow.RequestContext);'; make sure the method name is correct and such a public method is defined on targetClass waitlist.view.AdminSignInViewSetup; nested exception is java.lang.NoSuchMethodException: waitlist.view.AdminSignInViewSetup.adminSignInView Setup(org.springframework.web.flow.RequestContext)Here's waitlist-flow.xml:Code:package waitlist.view; import org.springframework.web.flow.action.FormAction; import org.springframework.web.flow.ScopeType; public class AdminSignInViewSetup extends FormAction { public AdminSignInViewSetup() { setFormObjectClass(AdminSignIn.class); setFormObjectScope(ScopeType.FLOW); } }And here's waitlist-servlet.xml:Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE webflow PUBLIC "-//SPRING//DTD WEBFLOW//EN" "http://www.springframework.org/dtd/spring-webflow.dtd"> <webflow id="adminSignInFlow" start-state="adminSignInViewSetup"> <action-state id="adminSignInViewSetup"> <action bean="adminSignInViewSetup" /> <transition on="success" to="adminSignInView" /> </action-state> <view-state id="adminSignInView" view="adminSignInView"> <transition on="submit" to="bindAndValidate" /> </view-state> <action-state id="bindAndValidate"> <action bean="adminSignInViewSetup" method="bindAndValidate" /> <transition on="success" to="debugView" /> </action-state> <view-state id="debugView" view="debugView"> <transition on="end" to="end" /> </view-state> <end-state id="end" /> </webflow>Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="adminSignInViewSetup" class="waitlist.view.AdminSignInViewSetup"> <property name="validator"> <bean class="waitlist.view.AdminSignInValidator" /> </property> <property name="formObjectName" value="adminSignIn" /> </bean> <bean id="adminSignInValidator" class="waitlist.view.AdminSignInValidator" /> <bean id="adminSignIn" class="waitlist.view.AdminSignIn" /> <bean name="/index.cgi" class="org.springframework.web.flow.mvc.FlowController"> <property name="synchronizeOnSession" value="true" /> <property name="flow" ref="adminSignInFlow" /> </bean> <bean id="adminSignInFlow" class="org.springframework.web.flow.config.XmlFlowFactoryBean"> <property name="location" value="/WEB-INF/waitlist-flow.xml" /> </bean> <!-- This one is always last when using the order property. --> <bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> <property name="prefix" value="/WEB-INF/jsp/" /> <property name="suffix" value=".jsp" /> </bean> </beans>


Reply With Quote