title: Why does Glassfish not recognize the jar?
body: <p>I want to deploy a jar on glassfish 4 with the command <code>asadmin deploy testapp-1.0-SNAPSHOT.jar</code> in the terminal. The complete layout of the jar is</p>
  
  <pre><code>/META-INF/MANIFEST.MF
  /META-INF/maven/com.test/testapp/pom.properties
  /META-INF/maven/com.test/testapp/pom.xml
  /com/test/testapp/*.class
  </code></pre>
  
  <p>But every time i get the error </p>
  
  <pre><code>remote failure: Archive type of jar was not recognized
  Command deploy failed.
  </code></pre>
  
  <p>I compile and package the jar with maven.</p>
  
  <p>Thanks in advance.</p>