In my Vaadin project I want to be able to access images as a static resource directly. When I put the images below src/main/webapp/VAADIN/themes/... it works. What do I have to do to access images if they are located in src/main/webapp/images? So far, I have seen that I can put this servlet-mapping in my web.xml:
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/images/*</url-pattern>
</servlet-mapping>
Unfortunately, it is not working, I get this error:
Caused by: com.ibm.ws.exception.RuntimeWarning: SRVE0303E: Servlet name for the servlet mapping /images/* could not be found.
My application is running on WebSphere, so I also tried SimpleFileServlet as servlet-name:
<servlet-mapping>
<servlet-name>SimpleFileServlet</servlet-name>
<url-pattern>/images/*</url-pattern>
</servlet-mapping>
Still resulting in the same error as above.
Any help is appreciated!
UPDATE
Other servlet-mappings:
<servlet-mapping>
<servlet-name>QuarzServlet</servlet-name>
<url-pattern>/QuarzServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>RunJUnitServlet</servlet-name>
<url-pattern>/RunJUnitServlet</url-pattern>
</servlet-mapping>
When trying to open the images (located in src/main/webapp/images/) in the webbrowser via URL, it just loads the Vaadin application. When I open the page where the images are used, Firebug tells me that the images could not be found.