In my project i create images and put them in a directory by :
 // Save process diagram to a file
            InputStream processDiagram = repositoryService.getProcessDiagram(processInstance.getProcessDefinitionId());
            try {
                FileUtils.copyInputStreamToFile(processDiagram, new File("/home/ilyass/selectSystemWorkspace/Core/selectsystem-view/src/main/webapp/images/workflow/Process11.png"));            
            } catch (IOException e) {
                e.printStackTrace();    
            }
now i want to display it in my xhtml page using :
        <h:graphicImage value="/images/workflow/Process11.png" />
the problem is without refreshing the directory i can't retrieve the image ! i tried to add this line to my tomcat server.xml based on a solution found here : Load images from outside of webapps / webcontext / deploy folder using or tag
     <Context docBase="/home/ilyass/selectSystemWorkspace/workflow/" path="/workflow" />
But still the same since i'm creating the images inside the project and put them into the folder, any ideas how to solve that
