title: Servlet 3 issues with @WebFilter and @WebServlet deployment
body: <p>I am trying to migrate my existing servlets and filters defined in <code>web.xml</code> file to <code>@WebServlet</code> and <code>@WebFilter</code> annotations on Glassfish V3 server.</p>
  
  <p>Currently <code>web.xml</code> defined 12 servlets and 6 filters .
  Tried removing one servlet from <code>web.xml</code> file and added <code>@WebServlet</code> annotation to Java servlet file .</p>
  
  <p>But having difficulty in accessing the servlet when ever my JSP trying to access Servlet Glassfish complains "Service Not Available".</p>
  
  <p>basically Servlet and filter defined using annotations never identified by Glassfish Server 3.</p>
  
  <p>Is this existing bug that annotations can not be used along with <code>web.xml</code> file ?
  Do we have any workaround.</p>
  
  <p>I referred following <a href="https://glassfish-samples.dev.java.net/source/browse/*checkout*/glassfish-samples/ws/javaee6//web/servlet/annotation-war/docs/index.html" rel="nofollow noreferrer">Sun documentation</a> to migrate web.xml to servlet 3 annotations</p>