title: webflow2 is not finding my java code (controller)
body: <p>I am trying to work a webflow project but I keep getting the following error that it cant find my controller?</p>
  
  <p>Here is my flow code:</p>
  
  <pre><code>&lt;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-2.0.xsd"&gt;
  
      &lt;var name="member" class="org.uftwf.enrollment.domain.Member" /&gt;
  
      &lt;decision-state id="checkIsInPending"&gt;
          &lt;if test="FlowActions.isInPending()" then="endStateMemeberPending" else="name" /&gt;
      &lt;/decision-state&gt;
  
      &lt;view-state id="name" view="enrollment1.jsp"&gt;
          &lt;transition on="submit" to="SSNonFile" /&gt;
          &lt;transition on="cancel" to="endState" bind="false" /&gt;
      &lt;/view-state&gt;
  
      &lt;action-state id="SSNOnFile"&gt;
       &lt;evaluate expression="FlowActions.isSSNOnFile(member)" /&gt;
           &lt;transition on="SUCCESS" to="endStateNoSSN" /&gt;
          &lt;transition on="FAIL" to="isMemeber" /&gt;
      &lt;/action-state&gt;
  
      &lt;action-state id="isMemeber"&gt;
       &lt;evaluate expression="FlowActions.isMemeber(member)" /&gt;
           &lt;transition on="SUCCESS" to="endStateMemeberExists" /&gt;
          &lt;transition on="FAIL" to="isDeceased" /&gt;
      &lt;/action-state&gt;
  
      &lt;action-state id="isDeceased"&gt;
       &lt;evaluate expression="FlowActions.isDeceased(member)" /&gt;
           &lt;transition on="SUCCESS" to="endStateMemeberExists" /&gt;
          &lt;transition on="FAIL" to="address" /&gt;
      &lt;/action-state&gt;
  
      &lt;view-state id="address" view="enrollment2.jsp"&gt;
          &lt;transition on="submit" to="endStateSuccess" /&gt;
          &lt;transition on="cancel" to="name" bind="false" /&gt;
      &lt;/view-state&gt;
  
  
      &lt;view-state id="preview" model="customer"&gt;
          &lt;transition on="cancel" to="name" /&gt;
          &lt;transition on="accept" to="endStateSuccess"&gt;
              &lt;evaluate expression="FlowActions.addCustomer(member)" /&gt;
          &lt;/transition&gt;
      &lt;/view-state&gt;
  
      &lt;!-- End state --&gt;
      &lt;end-state id="endStateMemberDeceased" view="unsuccessful.jsp" /&gt;
      &lt;end-state id="endStateNoSSN" view="noSSN.jsp" /&gt;
      &lt;end-state id="endStateMemeberExists" view="exists.jsp" /&gt;
      &lt;end-state id="endStateMemeberPending" view="pending.jsp" /&gt;
      &lt;end-state id="endStateSuccess" view="success.jsp" /&gt;
  
  
  
  &lt;/flow&gt;
  </code></pre>
  
  <p>Here is my controller code:</p>
  
  <pre><code>package org.uftwf.enrollment.controller.swf;
  import static org.apache.log4j.Logger.getLogger;
  
  import org.apache.log4j.Logger;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Component;
  import org.uftwf.enrollment.domain.Member;
  import org.uftwf.enrollment.service.TestService;
  
  @Component
  public class FlowActions {
  
      @Autowired
      private TestService testService;
  
      private static final Logger LOGGER = getLogger(FlowActions.class);
  
      public void addCustomer(Member customer) {
      //  testService.saveCustomer(customer);
      }
  
      public boolean isInPending()
      {
          LOGGER.debug("in side isInPending()");
          return false;
      }
  
      public void isSSNOnFile(Member customer)
      {
  
      }
  
      public void isMemeber(Member customer)
      {
  
      }
  
      public void isDeceased(Member customer)
      {
  
      }
  
  
  
  
  
  }
  </code></pre>
  
  <p>Crazy error. my project cant find controller with webflow..</p>
  
  <pre><code>SEVERE: Servlet.service() for servlet [spring] in context with path [/enrollment] threw exception [Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'checkIsInPending' of flow 'enroll'] with root cause
  org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Field or property 'FlowActions' cannot be found on object of type 'org.springframework.webflow.engine.impl.RequestControlContextImpl'
  </code></pre>
  
  <p>Here is my root-config.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"&gt;
  
      &lt;import resource="mvc.xml" /&gt;
      &lt;import resource="flow.xml" /&gt;
      &lt;import resource="domain.xml" /&gt;
  
  
      &lt;context:component-scan base-package="org.uftwf.enrollment.controller" /&gt;
  
  
  
  &lt;/beans&gt;
  </code></pre>