As mentioned in the question. It seems that I solved it by adding <servlet-class> tags in the web.xml file. In my code however I have @WebServlet tags which should already have registered the class names with tomcat. But that's an issue for the bugtracker.