I am trying to migrate my existing servlets and filters defined in web.xml
file to @WebServlet
and @WebFilter
annotations on Glassfish V3 server.
Currently web.xml
defined 12 servlets and 6 filters .
Tried removing one servlet from web.xml
file and added @WebServlet
annotation to Java servlet file .
But having difficulty in accessing the servlet when ever my JSP trying to access Servlet Glassfish complains "Service Not Available".
basically Servlet and filter defined using annotations never identified by Glassfish Server 3.
Is this existing bug that annotations can not be used along with web.xml
file ?
Do we have any workaround.
I referred following Sun documentation to migrate web.xml to servlet 3 annotations