title: ear deployed from IDE fails, but install from maven build works
body: <p>Red Hat JBoss Developer Studio
  Version: 10.2.0.GA
  Build id: GA-v20161125-1418-B55
  Build date: 20161125-1418</p>
  
  <p>I have an maven EAR project with separate projects for:</p>
  
  <p>war
  ejb-jar
  ejb-client ( local interfaces)</p>
  
  <p>If I run a <code>mvn clean install</code>  on the parent project from the command line, I can deploy the generated ear file to jboss eap7 with no problem.  However, if I perform a clean/build all from the IDE, then select run-as on server, I get the following error:</p>
  
  <pre><code>    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to 
  construct component instance
          Caused by: java.lang.IllegalArgumentException: Can not set 
  com.hsntech.hif.eao.OperationsCache field 
  com.hsntech.hif.application.HIFManagement.opCache to 
  com.hsntech.hif.eao.OperationsCache$$$view8"}}
  </code></pre>
  
  <p>the ejb-client jar project contains the interface:</p>
  
  <pre><code>@Local
  public interface OperationsCache  {
  
      Map&lt;String, OperationMapping&gt; getOperationsMaps() throws HIFEJBException;
  
      void resetCache();
  }
  </code></pre>
  
  <p>and the ejb.jar impelemtation contains:</p>
  
  <pre><code>@Singleton
  @ConcurrencyManagement(ConcurrencyManagementType.CONTAINER)
  public class OperationsCacheImpl implements OperationsCache, Observer {
  </code></pre>
  
  <p>The EJB is being created in the war project in this class:</p>
  
  <pre><code>@Singleton
  @Startup
  public class HIFManagement implements HIFManagementMBean {
  
  @EJB
  private OperationsCache opCache;
  </code></pre>