I think he is actually writing a web server/servlet container.

You could try using reflection to create the servlet etc. Just look in the web.xml for the servlet definition and grab the class.
...