This is the general solution with Spring, an exception resolver. If a Spring Web Flow exception NoSuchFlowExcecutionException is thrown it displays the jsp flowException.jsp in my WEB-INF/views/jsp/error directory:
Code:
<beans:bean id="exceptionResolver" class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
<beans:property name="exceptionMappings">
<beans:props>
<beans:prop key="org.springframework.webflow.execution.repository.NoSuchFlowExecutionException">
error/flowException
</beans:prop>
</beans:props>
</beans:property>
</beans:bean>
Make sure the full class name is correct for the exception you're getting.