Currently I am specifying the path to a shared image directory in the wicket application as follows:
getSharedResources().add("images", new FolderContentResource(new File(this.getServletContext().getResource("/images").getFile())));
Following path does not work either:
getSharedResources().add("images", new FolderContentResource(new File("/opt/tomcat/webapps/test/images")));
When deploying the application to Jelastic/Tomcat, the images cannot be retrieved. How to fix this?