title: request.getServletContext() not found, even with new JAR
body: <p>My compiler is not able to find the <b>HttpServletRequest getServletContext()</b> method. </p>
  
  <p>I am not doing anything too complicated:</p>
  
  <pre><code>public static void setMySortedSet(HttpServletRequest request, SortedSet&lt;String&gt; set) 
  {
     setMySortedSet(request.getServletContext(), set);
  }
  </code></pre>
  
  <p>Some troubleshooting I have tried:</p>
  
  <ul>
  <li>Discovered the method was created in 2.3, so I included a JAR that reflects that (and have it in my Eclipse build path)</li>
  <li>I include the JAR in my <em>build.xml</em> classpath.</li>
  </ul>
  
  <p>When I using Eclipse the method is found but when I try to build the classes I see this:</p>
  
  <pre><code>compile:
  [javac] Compiling 1 source files to C:\...\workspace\proj\build\WEB-INF\classes
  [javac] C:\...\workspace\proj\src\main\Helper.java:26: cannot find symbol
  [javac] symbol  : method getServletContext()
  [javac] location: interface javax.servlet.http.HttpServletRequest
  [javac]     return getURISet(request.getServletContext());
  [javac]                       ^
  [javac] Note: C:\...\workspace\proj\src\main\Helper.java uses unchecked or unsafe operations.
  [javac] Note: Recompile with -Xlint:unchecked for details.
  [javac] 1 error
  </code></pre>
  
  <p>Any ideas of what I could be missing? I appreciate any responses.</p>