title: Setting secure cookies on Jetty 6 -> 8 upgrade
body: <p>I've been staring at this for hours and it must be something obviously wrong, but I'm at a loss...</p>
  
  <p>In jetty6 you used to be able to set secure cookies in a web app like this (in the WAR's corresponding $jetty_home/contexts/foo.xml context file):</p>
  
  <p></p>
  
  <pre><code>&lt;Get name="sessionHandler"&gt;
    &lt;Get name="sessionManager"&gt;
      &lt;Set name="secureCookies"&gt;true&lt;/Set&gt;
    &lt;/Get&gt;
  &lt;/Get&gt;
  </code></pre>
  
  <p>In jetty 8.1.8.v20121106 it looks like the path to do that is (in code):</p>
  
  <pre><code>WebAppContext
  .getSessionHandler()
  .getSessionManager()
  .getSessionCookieConfig()
  .setSecure(true);
  </code></pre>
  
  <p>So, okay... I do that in my WebApp's context XML configuration like this:</p>
  
  <pre><code>  &lt;Configure class="org.eclipse.jetty.webapp.WebAppContext"&gt;
      &lt;Get name="sessionHandler"&gt;
        &lt;Get name="sessionManager"&gt;
          &lt;Get name="sessionCookieConfig"&gt;
            &lt;Set name="secure" type="boolean"&gt;true&lt;/Set&gt;
          &lt;/Get&gt;
        &lt;/Get&gt;
      &lt;/Get&gt;
  </code></pre>
  
  <p>But jetty fails to come up with this error:</p>
  
  <blockquote>
    <p>2014-02-13 14:20:38.113:WARN:oejx.XmlConfiguration:Config error at true java.lang.NoSuchMethodException: class org.eclipse.jetty.server.session.AbstractSessionManager$2.setSecure(boolean)
    2014-02-13 14:20:38.113:WARN:oejx.XmlConfiguration:Config error at true java.lang.NoSuchMethodException: class org.eclipse.jetty.server.session.AbstractSessionManager$2.setSecure(boolean)
    2014-02-13 14:20:38.114:WARN:oejx.XmlConfiguration:Config error at true java.lang.NoSuchMethodException: class org.eclipse.jetty.server.session.AbstractSessionManager$2.setSecure(boolean)
    2014-02-13 14:20:38.114:WARN:oejx.XmlConfiguration:Config error at true java.lang.NoSuchMethodException: class org.eclipse.jetty.server.session.AbstractSessionManager$2.setSecure(boolean)
    2014-02-13 14:20:38.115:WARN:oejd.DeploymentManager:Unable to reach node goal: started
    java.lang.NoSuchMethodException: class org.eclipse.jetty.server.session.AbstractSessionManager$2.setSecure(boolean)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.set(XmlConfiguration.java:586)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:391)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.get(XmlConfiguration.java:669)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:397)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.get(XmlConfiguration.java:669)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:397)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.get(XmlConfiguration.java:669)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:397)
            at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:350)
            at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:303)</p>
  </blockquote>
  
  <p>Anyone see anything obviously wrong?</p>