I was using the following in web.xml to configure a servlet to dynamically generate PDFs. <servlet-mapping>