The problem seems related to the double configuration of your managed bean with the same name:
- Annotation configuration by using
@ManagedBean and @SessionScoped annotations on the class called user.
- XML configuration in faces-config.xml file through the
node called User.
You should have a single configuration per managed bean i.e. the name. In this case, since you basically have the same managed bean configured twice, just remove one of the configurations. I recommend removing the XML configuration since the annotation configuration is more readable and understandable.