I am creating a framework which contains servlet names in an xml file.( sound familiar? ) Basically, just extending the functionality of servlet registering. The only problem is I pass a child class of HttpRequestWrapper between my servlets and on the first access the InvokerServlet pass a different child class and I am getting a class cast exception. Thusly, I would like to create an initialization servlet which will create an instance of each servlet in the xml file so this error will not occur on the initial access. Any help will be greatly appreciated.