Spring Web Flow Project works in IDE but not was WAR on tomcat 6 or tomcat 7
===

Spring Web Flow Project works in IDE but not was WAR on tomcat 6 or tomcat 7.

I made my first Spring Web Flow project and it works from within STS but if I export it was a war and move it to tomcat 6 or tomcat 7 I am getting the following error



    [CODE]HTTP Status 500 - Request processing failed; nested exception is org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@4921a90 targetAction = [EvaluateAction@3da997a expression = hellowWorldFlowActions.addCustomer(customer), resultExpression = [null]], attributes = map[[empty]]] in state 'preview' of flow 'helloworld' -- action execution attributes were 'map[[empty]]'
    
    type Exception report
    
    
    root cause
    
    org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Field or property 'hellowWorldFlowActions' cannot be found on object of type 'org.springframework.webflow.engine.impl.RequestControlContextImpl'
    	org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:208)
    	org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:72)
    	org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:52)
    	org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:102)
    	org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:97)
    	org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:84)
    	org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:75)
    	org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
    	org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
    	org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
    	org.springframework.webflow.engine.support.ActionTransitionCriteria.test(ActionTransitionCriteria.java:82)
    	org.springframework.webflow.engine.support.TransitionCriteriaChain.test(TransitionCriteriaChain.java:71)
    	org.springframework.webflow.engine.Transition.canExecute(Transition.java:195)
    	org.springframework.webflow.engine.Transition.execute(Transition.java:211)
    	org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
    	org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
    	org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
    	org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
    	org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
    	org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
    	org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:232)
    	org.springframework.webflow.engine.ViewState.resume(ViewState.java:196)
    	org.springframework.webflow.engine.Flow.resume(Flow.java:545)
    	org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:258)
    	org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)
    	org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
    	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
    	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    
    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.29 logs.[/CODE]