I am trying to upgrade my application from JSF 1.1 to JSF 2.0. I just replaced the latest JSR files and got the following exception. May be some problem in the configuration.
SEVERE: Exception sending context
initialized event to listener instance
of class
com.sun.faces.config.ConfigureListener
java.util.MissingResourceException:
Can’t find bundle for base name label,
locale en_US
Post your answers.
The exception is basically telling that you have a
<resource-bundle>with the<base-name>labeldefinied in your oldfaces-config.xml, but yet the concrete files likelabel.properties,label_en.properties, etc are missing in the root of the classpath.I’m not sure how this is related to upgrade from JSF 1.1 to JSF 2.0. Maybe you removed too much or the
faces-configis still declared as JSF 1.1 (for which the behaviour of JSF 2.0 is unspecified and for which I also can’t tell from own experience what would then happen, I’ve only played around JSF 1.2 –> JSF 2.0). A proper JSF 2.0faces-config.xmldeclaration starts as follows: