I created a Richfaces 4 web application with Maven and open the sample index.xhtml file with the visual editor.
The part <ui:composition template="/templates/template.xhtml">
is marked red with "Template file is not found", although the file exists and the path is correct (the folder templates is in the same directory as index.xhtml).
Thanks,
Ulrich