title: PWC1232: Exceeded maximum depth for nested request dispatches: 20
body: <p>I am getting this error:</p>
  
  <blockquote>
    <h3>HTTP Status 500</h3>
    
    <p><strong>type</strong> Exception report</p>
    
    <p><strong>message</strong></p>
    
    <p><strong>description</strong> The server encountered an internal error () that prevented it from fulfilling this request.</p>
    
    <p><strong>exception</strong> javax.servlet.ServletException: PWC1232: Exceeded maximum depth for nested request dispatches: 20<br>
        <em>note</em> The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.</p>
  </blockquote>
  
  <p>And here is my servlet code:</p>
  
  <pre><code>String url = "/panel.jsp";
  RequestDispatcher dispatcher = request.getRequestDispatcher(url);
  dispatcher.forward(request, response);
  </code></pre>
  
  <p>How is this caused and how can I solve it?</p>