when i click registration link i am getting below error.
May 9, 2011 10:30:25 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping for [/Ravi/app/registration] in DispatcherServlet with name 'spring'
Code:main.jsp ********** <HTML> <HEAD> <TITLE> JavaWorld Course Registration Application</TITLE> </HEAD> <f:view> <BODY> <h:form> <h2> JavaWorld Course Registration Application </h2> <a href="app/registration?_flowId=registration">registration</a> </h:form> </BODY> </f:view> </HTML> web.xml ******** <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <display-name>Welcome to Tomcat</display-name> <description> Welcome to Tomcat </description> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/webflow-config.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>/app/*</url-pattern> </servlet-mapping> </web-app> webflow-config.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" xmlns:flow="http://www.springframework.org/schema/webflow-config" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd"> <!-- Launches new flow executions and resumes existing executions --> <flow:executor id="flowExecutor" registry-ref="flowRegistry"/> <!-- <flow:execution-attributes> <flow:alwaysRedirectOnPause value="false"/> </flow:execution-attributes> <flow:execution-listeners> <flow:listener ref="myFlowListener" criteria="registration"/> </flow:execution-listeners> </flow:executor> <bean id="myFlowListener" class="com.citigroup.oscar.webflow.executor.jsf.FlowPhaseListener" /> --> <!-- Creates the registry of flow definitions for this application --> <flow:registry id="flowRegistry"> <flow:location path="/WEB-INF/flows/registration.xml" /> </flow:registry> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> <property name="prefix" value="/jsp/"/> <property name="suffix" value=".jsp"/> </bean> </beans> registration.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-1.0.xsd"> <var name="UserBean" class="com.javaworld.command.UserBean" scope="flow"/> <var name="WebBean" class="com.javaworld.command.WebBean" scope="flow"/> <var name="ClassBean" class="com.javaworld.command.ClassBean" scope="flow"/> <start-state idref="enterReg" /> <view-state id="enterReg" view="/jsp/register.jsp"> <transition on="register" to="confirmation"/> <transition on="cancel" to="enterReg"/> </view-state> <view-state id="confirmation" view="/jsp/confirm.jsp"> <transition on="revise" to="enterReg"/> <transition on="success" to="requiresStatus"/> </view-state> <decision-state id="requiresStatus"> <if test="${flowScope.UserBean.webBased}" then="enterWebDetails" else="enterClassDetails" /> </decision-state> <view-state id="enterWebDetails" view="/jsp/webdetails.jsp"> <transition on="cancelweb" to="enterReg"/> <transition on="confirmweb" to="done"/> </view-state> <view-state id="enterClassDetails" view="/jsp/classroom.jsp"> <transition on="cancelclass" to="enterReg"/> <transition on="confirmclass" to="payment"/> </view-state> <view-state id="payment" view="/jsp/payment.jsp"> <transition on="pay" to="done"/> <transition on="cancel" to="enterReg"/> </view-state> <end-state id="done" view="/jsp/done.jsp"/> </flow>


Reply With Quote