title: Jetty and GWT (Google Web Toolkit)
body: <p>As I understand it, GWT uses an embedded Jetty server. Can 
  anyone please tell me where I can find the Jetty .xml configuration files 
  used by GWT? I have a webapp which makes uses of Jetty's 
  ContinuationFilter and ProxyServlet. The app works fine under GWT but 
  fails when run in a separate Jetty instance outside of GWT. If I can 
  replicate the GWT Jetty config then I think I'll be okay. </p>
  
  <p>Edit for more info:</p>
  
  <p>My webapp's web.xml reads as follows: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;
  
  &lt;web-app&gt;
  
    &lt;filter&gt;
      &lt;filter-name&gt;JettyContinuationFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.eclipse.jetty.continuation.ContinuationFilter&lt;/filter-class&gt;
    &lt;/filter&gt;
    &lt;filter-mapping&gt;
      &lt;filter-name&gt;JettyContinuationFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/bugzilla/*&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
  
    &lt;!-- Servlets --&gt;
    &lt;servlet&gt;
      &lt;servlet-name&gt;greetServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.searchsystem.gwt.server.GreetingServiceImpl&lt;/servlet-class&gt;
    &lt;/servlet&gt;
  
      &lt;servlet&gt;
       &lt;servlet-name&gt;jetty-proxy-servlet&lt;/servlet-name&gt;
       &lt;servlet-class&gt;org.eclipse.jetty.servlets.ProxyServlet$Transparent&lt;/servlet-class&gt;
       &lt;init-param&gt;
          &lt;param-name&gt;ProxyTo&lt;/param-name&gt;
          &lt;param-value&gt;http://localhost/&lt;/param-value&gt;
       &lt;/init-param&gt;
       &lt;init-param&gt;
         &lt;param-name&gt;Prefix&lt;/param-name&gt;
         &lt;param-value&gt;/&lt;/param-value&gt;
       &lt;/init-param&gt;
       &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
  
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;greetServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/dashboard/greet&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  
    &lt;servlet-mapping&gt;
       &lt;servlet-name&gt;jetty-proxy-servlet&lt;/servlet-name&gt;
       &lt;url-pattern&gt;/bugzilla/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt; 
  
    &lt;!-- Default page to serve --&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;Dashboard.html&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>and the link to my Bugzilla installation is in this form: </p>
  
  <pre><code>com.google.gwt.user.client.ui.Frame bugFrame = new Frame("/bugzilla/");
  </code></pre>
  
  <p>Running under Jetty 6.1.26, I get this output:</p>
  
  <pre><code>Request Attributes
  Attribute:  Value:
  javax.servlet.forward.request_uri   /bugzilla/
  org.mortbay.jetty.error_page    /jspsnoop/ERROR/404
  javax.servlet.forward.servlet_path  /bugzilla/
  testFilter  1
  javax.servlet.error.message     NOT_FOUND
  requestInitialized  ''
  javax.servlet.forward.context_path  
  javax.servlet.error.status_code     404
  javax.servlet.error.servlet_name    default
  org.mortbay.jetty.newSessionId  47deq3eo5kblxfrvtc5rljrg
  javax.servlet.error.request_uri     /bugzi
  </code></pre>
  
  <p>lla/</p>