Thursday, October 2, 2008

javax.faces.FacesException: Can't instantiate class: 'com.example.InputPageBean' ?

This means, that for some reason class InputPageBean wasn't found at runtime. That can happen if com.example.InputPageBean wasn't properly deployed and is being missed from classpath.
Checklist:
* Check if your class file (not the ".java" file) is on the class path of your webapp. Your class file should be in webapp/WEB-INF/classes/com/example.
* Check for typos in the faces-config.xml file, verify the package and the class name
* Check the POJO default constructors if are properly implemented because there are cases you have overide it.
* Check for compiler errors

No comments: