I am trying to configure jsf navigation rule according to jee tutorial, but I have a problem. Here is my navigation rule in faces-config.xml
<navigation-rule>
<from-view-id>/login.jsf</from-view-id>
<navigation-case>
<from-action>#{userBean.login}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/home.jsf</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{userBean.login}</from-action>
<from-outcome>failure</from-outcome>
<to-view-id>/failure.jsf</to-view-id>
</navigation-case>
</navigation-rule>
After trying to login, method userBean.login() returns String "success" but nothing happens and in log I have warning:
JSF1064: Unable to find or serve resource, /pages/success.xhtml.
So why jsf tries to find success.xhtml instead of home.xhtml?