JSF Application: 404 error

Context:

JSF application running on a Tomcat server

Symptoms:

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

Investigation

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

 

OR

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

Resolution

Download Digister from here http://commons.apache.org/digester/

and BeanUtils from here http://commons.apache.org/beanutils/

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 !!!


Like it??? Save it !!!
  • Digg
  • del.icio.us
  • description
  • Reddit
  • TwitThis

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>