Looks like you want to have a kind of "front controller" servlet that intercepts all incoming requests from client. If so, you need to configure the mapping for your servlet properly, the URL pattern...