Image resource has a URL but does not /GET

Hi,

I have a Vaadin.ui.CustomComponent inhereted class. In the constructor of the class I am initializing and defining a layout and as part of a layout I have a button and image. The button gets placed in the layout correctly but the image does not. The image code looks like

[code]
final ClassResource cr = new ClassResource(null, “/img/module1.png”);
final Image image = new Image(“”, cr);

    layout.addComponent(image);

[/code]When I fire up my vaadin web application I have this request url for the resource : http://localhost:8181/main/APP/connector/1/16/source/module1.png

But the image does not show. What could be the causes for this.