title: Injected ServetContext is null on Grizzly, not null in TomCat 7
body: <p>I'm working on a Jax-RS RESTful web-service. While I'm still coding (in Eclipse), I'd like to be able to debug easily, so I decided to have a Maven project and I use dependencies to the Grizzly web server, allowing me to start up a server with merely 2 lines of code (not even having to build the WAR file).</p>
  
  <p>In my web-service implementation class (the one with @Path) I have injected the context as member variable:</p>
  
  <pre><code>@javax.ws.rs.core.Context
  ServletContext context;
  </code></pre>
  
  <p>When I check the context variable for null, it will not be null if I build the WAR file and deploy it in TomCat, but it will be null when I start my Grizzly server and check it then. Starting the Grizzly v1.9 server is done as follows:</p>
  
  <pre><code>String url = "http://localhost:1234";
  SelectorThread srv = GrizzlyServerFactory.create(url);
  </code></pre>
  
  <p>I've tried to find solutions to this with Google, someone suggested to enable "load-on-startup" in the web.xml, but this didn't help either.</p>
  
  <p>Any ideas?
  Cheers!</p>