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

Reply via email to