resources is a reserved path name for Wicket: shared resources from the classpath are served from that path (e.g. wicket-ajax.js). rename your folder to something else, or find a way to rename the wicket reservation for resources to something else (should be possible somewhere in one of the settings).
Martijn On 3/13/08, Enrique Rodriguez <[EMAIL PROTECTED]> wrote: > Hi, wicket-users, > > I just upgraded several Wicket sites from 1.2.4 to 1.3. I now have a > problem where images in a folder called 'resources' won't appear. In > other words, I have a WAR source directory of 'src/main/webapp' which > has images in a folder 'resources'. My HTML then has images > referenced by: > > <img src="resources/button.gif" /> > > Attempts to view these images result in error: > > ERROR [SharedResourceRequestTarget] shared resource button.gif not found > > I have other folders, such as 'src/main/webapp/[anything but > 'resources']' and images serve just fine out of those folders. In > fact, if I simply rename 'resources' to 'resources1' and update my > HTML everything works. The problem is I have 3 webapps and many > images with this problem and, more importantly, a political issue with > going back to the HTML designers if we can't use 'resources' as a > folder name anymore. > > Interestingly, if I attempt to serve an image in a folder under > 'resources', such as 'resources/tabs/tab.gif' I get exception: > > ERROR [SharedResourceRequestTarget] unable to lazily register shared > resource resources/tabs/tab.gif > java.lang.ClassNotFoundException: resources > ... (SharedResourceRequestTarget:146) > > Is there a workaround so I can use the name 'resources'? Perhaps a > way to explicitly declare a resource path alias? > > Enrique > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.1 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
