title: Error occurred during glassfish deployment - There is no web component by the name of default here
body: <p>This is my first time to deploy web application on a Glassfish Server with Maven.</p>
  
  <p>I execute the following maven goals step by step:</p>
  
  <ol>
  <li><code>mvn glassfish:create-domain -P glassfish</code></li>
  <li><code>mvn glassfish:start-domain -P glassfish</code></li>
  <li><code>mvn glassfish:deploy -P glassfish</code></li>
  </ol>
  
  <p>Everything goes fine until the third step (<code>glassfish:deploy</code>) and the error message is</p>
  
  <pre><code>[ERROR] remote failure: Error occurred during deployment: Exception while deploying the app [herald-web-services] : There is no web component by the name of default here.. Please see server.log for more details.
  [ERROR] Deployment of /Users/Ray/workspace/herald-web-services/target/herald-web-services-1.1-SNAPSHOT.war failed.
  [ERROR] For more detail on what might be causing the problem try running maven with the --debug option 
  [ERROR] or setting the maven-glassfish-plugin "echo" property to "true".
  </code></pre>
  
  <p>And, here is part of my <code>pom.xml</code>:</p>
  
  <pre><code>&lt;project&gt;
      ...
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.glassfish.maven.plugin&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-glassfish-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;glassfishDirectory&gt;${glassfish.home}&lt;/glassfishDirectory&gt;
                      &lt;user&gt;${domain.user}&lt;/user&gt;
                      &lt;adminPassword&gt;${domain.password}&lt;/adminPassword&gt;
                      &lt;passwordFile&gt;${glassfish.home}/domains/${project.artifactId}/config/domain-passwords&lt;/passwordFile&gt;
                      &lt;autoCreate&gt;true&lt;/autoCreate&gt;
                      &lt;debug&gt;true&lt;/debug&gt;
                      &lt;echo&gt;true&lt;/echo&gt;
                      &lt;skip&gt;${test.int.skip}&lt;/skip&gt;
                      &lt;domain&gt;
                          &lt;name&gt;${project.artifactId}&lt;/name&gt;
                          &lt;adminPort&gt;4848&lt;/adminPort&gt;
                          &lt;httpPort&gt;8080&lt;/httpPort&gt;
                          &lt;httpsPort&gt;8443&lt;/httpsPort&gt;
                          &lt;iiopPort&gt;3700&lt;/iiopPort&gt;
                          &lt;jmsPort&gt;7676&lt;/jmsPort&gt;
                      &lt;/domain&gt;
                      &lt;components&gt;
                          &lt;component&gt;
                              &lt;name&gt;${project.artifactId}&lt;/name&gt;
                              &lt;artifact&gt;${project.build.directory}/${project.build.finalName}.war&lt;/artifact&gt;
                          &lt;/component&gt;
                      &lt;/components&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  ...
  &lt;/project&gt;
  </code></pre>
  
  <p>and <code>settings.xml</code>,</p>
  
  <pre><code>&lt;profile&gt;
     &lt;id&gt;glassfish&lt;/id&gt;
     &lt;properties&gt;
       &lt;glassfish.home&gt;/Users/Ray/glassfish3&lt;/glassfish.home&gt;
       &lt;domain.user&gt;admin&lt;/domain.user&gt;
       &lt;domain.password&gt;changeit&lt;/domain.password&gt;
       &lt;test.int.skip&gt;true&lt;/test.int.skip&gt;
     &lt;/properties&gt;
   &lt;/profile&gt;
  </code></pre>
  
  <p></p>
  
  <p>Do I miss something in my <code>pom.xml</code> or in Glassfish configuration?</p>