title: javax.servlet.ServletException: bean [name] not found within scope
body: <p>I'm getting this error:</p>
  
  <pre><code>javax.servlet.ServletException: bean not found within scope
  </code></pre>
  
  <p>on a page with this at the top.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;jsp:useBean id="bean" type="com.example.Bean" scope="request" /&gt;
  </code></pre>
  
  <p>The class exists in the classpath, it worked this morning, and I don't get what not found within scope means.</p>
  
  <p>How is this caused and how can I solve it?</p>