You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chris <ch...@gmx.at> on 2015/02/12 00:53:52 UTC
Path to shared resource + Jelastic
Hi all,
I am using an image directory as shared resource and specify it currently in WicketApplication as follows:
getSharedResources().add("images", new FolderContentResource(new File(this.getServletContext().getResource("/images").getFile())));
This works fine when deployed to the local tomcat. However, when deployed to Jelastic-Tomcat, the image path is not working.
I tried setting the path as follows as described in http://docs.jelastic.com/environment-variables <http://docs.jelastic.com/environment-variables>, but it does not work either:
getSharedResources().add("images", new FolderContentResource(new File("/opt/tomcat/webapps/test/images")));
Does someone know how to set it when using Jelastic?
Thanks a lot,
Chris