title: Error in pom.xml while building a REST web app using archtype jersey-quickstart-webapp Ver 1.19.1
body: <p><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;java.rest&lt;/groupId&gt;
      &lt;artifactId&gt;RESTFULApp2&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;RESTFULApp2 Jersey Webapp&lt;/name&gt;
      &lt;build&gt;
          &lt;finalName&gt;RESTFULApp2&lt;/finalName&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;inherited&gt;true&lt;/inherited&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;!-- Run the application using "mvn embedded-glassfish:run" --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.glassfish&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-embedded-glassfish-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${glassfish.version}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;goalPrefix&gt;embedded-glassfish&lt;/goalPrefix&gt;
                      &lt;app&gt;C:/Users/PATHAK/workspace/target/${project.build.finalName}.war&lt;/app&gt;
                      &lt;autoDelete&gt;true&lt;/autoDelete&gt;
                      &lt;port&gt;8080&lt;/port&gt;
                  &lt;/configuration&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
                          &lt;artifactId&gt;jersey-servlet&lt;/artifactId&gt;
                          &lt;version&gt;${project.version}&lt;/version&gt;
                      &lt;/dependency&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
                          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
                          &lt;version&gt;3.0.1&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-servlet&lt;/artifactId&gt;
              &lt;version&gt;${jersey.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
              &lt;version&gt;${jersey.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.8.2&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
              &lt;version&gt;${jersey.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.extras&lt;/groupId&gt;
              &lt;artifactId&gt;glassfish-embedded-web&lt;/artifactId&gt;
              &lt;version&gt;${glassfish.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;properties&gt;
          &lt;jersey.version&gt;1.20-SNAPSHOT&lt;/jersey.version&gt;
          &lt;glassfish.version&gt;3.1.1&lt;/glassfish.version&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
  &lt;/project&gt;
  </code><img src="https://i.stack.imgur.com/b9Pwd.png" alt="enter image description here"></p>
  
  <p>I am unable to deploy a Rest application build with archtype jersey-quickstart-webapp Ver 1.19.1 on glassfish 4. The dialogue box pops up saying unable to deploy. I think this is because of error in POM.xml.</p>
  
  <p><img src="https://i.stack.imgur.com/tDHLh.png" alt="enter image description here"></p>