title: RAD not adding an EAR project to a WAS instance
body: <p>In my RAD workspace, I have an EAR project. Now I have a WAS 6.1 instance which i created from inside RAD. When I right click the WAS 6.1 instance and do 'Add Remove projects' and select the EAR, I get error:  </p>
  
  <pre><code>Cannot add an EAR project to the server unless it contains a Web, EJB, or Connector module.
  </code></pre>
  
  <p>Now this is not true because in my EAR project there is META-INF/application.xml and it has the contents:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"&gt;
      &lt;display-name&gt;
      someEAR&lt;/display-name&gt;
      &lt;module id="EjbModule_1291759813449"&gt;
          &lt;ejb&gt;someEJB.jar&lt;/ejb&gt;
      &lt;/module&gt;
      &lt;module&gt;
          &lt;web&gt;
              &lt;web-uri&gt;someWeb.war&lt;/web-uri&gt;
              &lt;context-root&gt;someWeb&lt;/context-root&gt;
          &lt;/web&gt;
      &lt;/module&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>So clearly it has a <code>&lt;web&gt;</code> and <code>&lt;ejb&gt;</code> module. Why is RAD complaining?</p>