Assuming your build is including the resource, your image will be under /WEB-INF/classes/resource/icons/image.gif. Generally, you wouldn't access a resource from your classes like that though. You could make a resource servlet that would use the getResourceAsStream facility to load and serve those resources. The conventions seems to be to either just put your image in your webapp folder just like the css, or to use the GWT resource bundle stuff.
On Friday, January 18, 2013 8:59:17 AM UTC-6, membersound wrote: > > How do I have to make reference to images under src/main/resources/icons? > > In my css (placed under src/main/webapp): > > .my-class { > background: url("../resources/icons/image.gif)"; > } > > > I'm constantly getting [WARN] 404 - GET > /resources/icons/validation_error_icon.gif (127.0.0.1) 1427 bytes. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ccL0Kwc8ke8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.