I am trying to have a servlet (non-jsp) as my welcome-file in tomcat 7, and the only way I can do it is
by having it mapped to \"/\" url-pattern, otherwise it retur
I don't know what URL patterns you all tried, but mapping the servlet on /credentialServlet or /credentialServlet/* should definitely work.
/credentialServlet
/credentialServlet/*
credentialServlet com.servlet.CredentialServlet credentialServlet /credentialServlet credentialServlet