title: HttpSession class not found
body: <p>I am building a project using groovy on grails 2.3.7. Rather that using the default grails plugins I want to configure the plugins as maven dependencies. </p>
  
  <p>I also want to use jetty server instead of tomcat server and mongodb instead of the regular relational databases. </p>
  
  <p>After creating the project I executed '<strong>grails create-pom</strong>' to create the pom.xml file for the project. </p>
  
  <p>I have added the following changes to the pom.xml.</p>
  
  <ol>
  <li><p>Removed the dependency for hibernate and added the following dependency for mongodb</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;mongodb&lt;/artifactId&gt;
      &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;type&gt;zip&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre></li>
  <li><p>Removed the default plugin for tomcat and added the following plugin for jetty.</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.grails.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;jetty&lt;/artifactId&gt;
      &lt;version&gt;3.0.0&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;type&gt;zip&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre></li>
  </ol>
  
  <p>I have also configured the repository for grails plugins.</p>
  
  <p>While executing the code I get the following error.</p>
  
  <pre><code>[INFO] Scanning for projects...
  [WARNING] 
  [WARNING] Some problems were encountered while building the effective model for com.mycompany:grails-mongodb-demo:grails-app:0.1
  [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 200, column 21
  [WARNING] 
  [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
  [WARNING] 
  [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
  [WARNING] 
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building grails-mongodb-demo 0.1
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ grails-mongodb-demo ---
  [INFO] Deleting /mnt/data/Work/Tutorials/Practice/grails/grails-mongodb-demo/target
  [INFO] Deleting /mnt/data/Work/Tutorials/Practice/grails/grails-mongodb-demo/plugins (includes = [**/*], excludes = [])
  [INFO] 
  [INFO] --- grails-maven-plugin:2.3.7:clean (default-clean) @ grails-mongodb-demo ---
  [WARNING] Grails Start with out fork
  |Loading Grails 2.3.7
  |Configuring classpath
  |Running pre-compiled script
  .
  |Environment set to development
  ....................
  |Application cleaned.
  [INFO] 
  [INFO] --- grails-maven-plugin:2.3.7:validate (default-validate) @ grails-mongodb-demo ---
  [INFO] 
  [INFO] --- grails-maven-plugin:2.3.7:init (default-init) @ grails-mongodb-demo ---
  [INFO] 
  [INFO] --- grails-maven-plugin:2.3.7:config-directories (default-config-directories) @ grails-mongodb-demo ---
  [INFO] 
  [INFO] --- grails-maven-plugin:2.3.7:maven-compile (default-maven-compile) @ grails-mongodb-demo ---
  [WARNING] Grails Start with out fork
  |Loading Grails 2.3.7
  |Configuring classpath
  |Running pre-compiled script
  ..........
  |Compiling 12 source files
  .Error 
  |
  Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSession (Use --stacktrace to see the full trace)
  </code></pre>
  
  <p>Can anyone please tell me, what plugin I am missing or is there some thing I have configured incorrectly.</p>