If I remove the leading slash, i.e. templates/template.xhtml, the error disappears.
But this is not as it should be, so I assume that is a bug in jboss tools.
Reply to this message by going to Community
Start a new discussion in JBoss Tools at Community