I added a new mime type in catalina/web.xml but it didn't have any effect. It still presented it as a text file.I also tried adding the mime type in WEB-INF/web.xml of my war directory, but it still didn't have any effect.