I have a jar file in my WEB-INF / lib directory. Inside this can is the META-INF / resources directory with one file (image.jpg). As far as I understand the servlet 3.0 API, when I deploy it as part of my web application under Tomcat 7, I should be able to switch to
http:
and see the image downloaded from the can. but instead I get error 404. As if servlet_api is not loading resources from my cans, even if the documentation says that it should be.
What am I doing wrong? Is there a field that I need to put in the web.xml file to tell tomcat to download these resources and make them available for a web browser?
source
share