title: use shiro with mvn jetty plugin
body: <p>I downloaded "<a href="http://bubba-h57.github.com/H57_Shiro/" rel="nofollow">Spring MVC + Shiro + myBatis + JSR-303 Validation</a>" example from apache shiro doc page, and I want to run it with maven jetty plugin, So I open the pom.xml and put things like this </p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jetty-plugin&lt;/artifactId&gt;
              &lt;version&gt;6.1.10&lt;/version&gt;
                      &lt;configuration&gt;
                              &lt;scanIntervalSeconds&gt;10&lt;/scanIntervalSeconds&gt;
                              &lt;stopKey&gt;foo&lt;/stopKey&gt;
                              &lt;stopPort&gt;9999&lt;/stopPort&gt;
                              &lt;webAppConfig&gt;
                              &lt;contextPath&gt;/&lt;/contextPath&gt;
                              &lt;/webAppConfig&gt;
                              &lt;scanIntervalSeconds&gt;10&lt;/scanIntervalSeconds&gt;
                              &lt;!-- &lt;webAppSourceDirectory&gt;&lt;/webAppSourceDirectory&gt; --&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                              &lt;execution&gt;
                                      &lt;id&gt;start-jetty&lt;/id&gt;
                                      &lt;phase&gt;pre-integration-test&lt;/phase&gt;
                                      &lt;goals&gt;
                                              &lt;goal&gt;run&lt;/goal&gt;
                                      &lt;/goals&gt;
                                      &lt;configuration&gt;
                                              &lt;scanIntervalSeconds&gt;0&lt;/scanIntervalSeconds&gt;
                                              &lt;daemon&gt;true&lt;/daemon&gt;
                                      &lt;/configuration&gt;
                              &lt;/execution&gt;
                              &lt;execution&gt;
                                      &lt;id&gt;stop-jetty&lt;/id&gt;
                                      &lt;phase&gt;post-integration-test&lt;/phase&gt;
                                      &lt;goals&gt;
                                              &lt;goal&gt;stop&lt;/goal&gt;
                                      &lt;/goals&gt;
                              &lt;/execution&gt;
                      &lt;/executions&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>After that I start the app use mvn jetty:run, I try to register a user in the example and I get an exception likes: 
  "<strong>java.lang.ClassCastException: org.apache.shiro.web.servlet.ShiroHttpSession cannot be cast to org.mortbay.jetty.servlet.AbstractSessionManager$SessionIf</strong>", could anyone tell me why, and thx a lot.</p>