I have an app which should save content (user avatars) in some directory, for example C:\avadir. In my app I'm using SpringMVC. I need to show user defined avatars. For this I have to configure Tomcat to use this external directory. I have such opthions in my ROOT.xml, placed in %CATALINA_HOME%\conf\Catalina\localhost:
<Context path="/ava" docBase="c:/avadir" debug="0" reloadable="true" crossContext="true" />
and next settings in my servlet-context.xml:
<resources mapping="/ava/**" location="/ava/" />
After set up this settings I still can't get access to my file placed in C:\avadir\file.jpg by url localhost:8080/ava/file.jpg. Is there something missed?