There are a couple of things you need to sort out.
First, the configuration in the web.xml has problems: the
servlet-class is incorrect (doesn't match your
Servlet), and the
url-pattern doesn't match what you are typing in the browser (doesn't matter at the moment due to the second issue).
Second, you are using both an annotation and a deployment descriptor. While that is allowed, when you have the errors with one or the other, things can appear to be working, but not completely or as expected. Maybe for now,
you should use one or the other. IF you want to specify the init params and other configuration data in the annotation rather than the web.xml file, you can annotate the Servlet like this:
@WebServlet(name="anyname", urlPatterns={"/servletconfg"},initParams={@WebInitParam(name="Driver", value="trapti")})