Domino & Notes error

javax.faces.FacesException: Can't instantiate class: [class]

What it means

The XPages runtime could not create a Java class it needed, such as the compiled XPage or a managed bean.

Common causes

  • The application was not built after a design change, or Build Automatically was off in Designer
  • An error in a managed bean, or no public no-argument constructor
  • A wrong class name in faces-config.xml

Quick fixes

  1. In Domino Designer, run Project > Clean and rebuild the application
  2. Check the class name in faces-config.xml matches the Java class
  3. Make sure the bean has a public constructor with no arguments

Need a hand with this?

Paste your exact message into What's That Error? for a plain-English explanation, or get in touch. I've been supporting Domino and Notes for 28 years.

Disclaimer

The errors, causes and fixes on this site are carefully researched, drawing on HCL documentation and 28 years of hands-on Domino and Notes experience. Every environment is different, though, and a solution that works in one may not be right for yours. Exact wording can also vary between Domino and Notes versions.

This information is general guidance only and is provided without warranty of any kind. Always back up your data and test changes on a non-production system first. To the extent permitted by law, Bruinsma Services Pty Ltd accepts no responsibility or liability for any loss, damage, downtime or other consequence arising from use of this information. For advice specific to your environment, please contact me.