title: Why incompatible version of Java EE error throw from WebSphere?
body: <p>I was using WebSphere Allication Server version 7.0.0.13 in deploying my application. The war was build using Ant version 1.8.2 to build the war and ear file. When I am installing my application through WebSphere, I hit the following error:</p>
  <blockquote>
  <p>The EAR file could be corrupt and/or incomplete. Make sure that the
  application is at a compatible Java(TM) Platform, Enterprise Edition
  (Java EE) level for the current version of WebSphere(R) Application
  Server.</p>
  <p>com.ibm.websphere.management.application.client.AppDeploymentException
  [Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException:
  dd_in_ear_load_EXC_]</p>
  </blockquote>
  <p>May I know what cause the problem? Or did I miss configure something in Ant script? Below are the ANT script for compiling the WAR and EAR.</p>
  <pre><code>&lt;target name=&quot;compilewar&quot; description=&quot;generating war&quot;&gt;
          &lt;war destfile=&quot;${dist.path}/WebApp.war&quot; webxml=&quot;${source.path}/mywebapp/src/main/webapp/WEB-INF/web.xml&quot;&gt;
              &lt;webinf dir=&quot;${source.path}/mywebapp/src/main/webapp/WEB-INF/&quot; includes=&quot;**/*&quot;/&gt;
              &lt;lib dir=&quot;${dist.path}/&quot; includes=&quot;*.jar&quot;/&gt;
              &lt;classes dir=&quot;${source.path}/mywebapp/src/main/resources/&quot; includes=&quot;**/*&quot;/&gt;
              &lt;fileset dir=&quot;${source.path}/mywebapp/src/main/webapp/&quot;&gt;
                  &lt;include name=&quot;**/*.jsp&quot;/&gt;
              &lt;/fileset&gt;
              &lt;fileset dir=&quot;${source.path}/mywebapp/src/main/webapp/&quot;&gt;
                  &lt;include name=&quot;main/**/*&quot;/&gt; 
              &lt;/fileset&gt;
          &lt;/war&gt;
      &lt;/target&gt;
  
  &lt;target name=&quot;compileear&quot; description=&quot;Compile Ear file&quot;&gt;
          &lt;ear destfile=&quot;${source.path}/myear/src/main/application/WebApp.ear&quot; appxml=&quot;${svn.working.project.path}application.xml&quot;&gt;
              &lt;metainf dir=&quot;${source.path}/mywebapp/src/main/webapp/META-INF&quot;/&gt;
              &lt;fileset dir=&quot;${dist.path}/&quot; includes=&quot;*.war&quot;/&gt;
          &lt;/ear&gt;
      &lt;/target&gt;
  </code></pre>
  <p>THanks @!</p>