JSF application running on a Tomcat server


When you try to access a resource in your appplication- you are greeted with a 404 error


Check your error log.

If your exception trace is similar to one of the exceptions mentioned below mentioned below- you are missing one or both of these libraries: Commons-Digester or Commons- BeanUtils. (Note: You need both since Digister is dependent upon BeanUtils.)

SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: org.apache.commons.digester.RuleSet



SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: org.apache.commons.beanutils.MethodUtils


Download Digister from here

and BeanUtils from here

You will need to put these libraries under the WEB-INF\lib folder of your application.

PS: If this fixes your problem  – please leave a note here or  if it doesn’t let me know either way

Good luck !!!

© 2011 Technology Cafe Suffusion theme by Sayontan Sinha