3 Replies Latest reply on Aug 28, 2009 8:12 AM by radu radu

    "Locale en_US" navigation error

    radu radu Newbie

      Hello,

      I get the following error : "java.util.MissingResourceException: Can't find bundle for base name com.sun.el.Messages, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)" when i try the leave the current Jsf page. For me is really strange because the page is opening and all thing are right until i try to leave it.

      As i studied , error is generated from this part of code:
      view plaincopy to clipboardprint?

      1. <h:selectOneMenu id="oneInput" value="#{myObj.value1.myValue}" styleClass="inputStyle"
      2. converter="convert">
      3. <f:selectItems value="#{myKeys}" />
      4. </h:selectOneMenu>

      <h:selectOneMenu id="oneInput" value="#{myObj.value1.myValue}" styleClass="inputStyle" converter="convert"> <f:selectItems value="#{myKeys}" /> </h:selectOneMenu>

      Where "myKeys" is a List which comes from spring web flow.
      Also as a remark in faces-config.xml the locale congig is:
      view plaincopy to clipboardprint?

      1.
      2. <locale-config>
      3. <default-locale>es_Es</default-locale>
      4. <supported-locale>es_Es</supported-locale>
      5. </locale-config>

      <locale-config> <default-locale>es_Es</default-locale> <supported-locale>es_Es</supported-locale> </locale-config>

      I changed them to "en_Us" but the error still occurs.

      If you have an idea please give me an hand !

      Regards,
      Radu

        • 1. Re:
          radu radu Newbie

           

          "radu123" wrote:
          Hello,

          I get the following error : "java.util.MissingResourceException: Can't find bundle for base name com.sun.el.Messages, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)" when i try the leave the current Jsf page. For me is really strange because the page is opening and all thing are right until i try to leave it.

          As i studied , error is generated from this part of code:

          <h:selectOneMenu id="oneInput" value="#{myObj.value1.myValue}" styleClass="inputStyle"
          converter="convert">
          <f:selectItems value="#{myKeys}" />
          </h:selectOneMenu>

          <h:selectOneMenu id="oneInput" value="#{myObj.value1.myValue}" styleClass="inputStyle" converter="convert"> <f:selectItems value="#{myKeys}" /> </h:selectOneMenu>

          Where "myKeys" is a List which comes from spring web flow.
          Also as a remark in faces-config.xml the locale congig is:


          <locale-config>
          <default-locale>es_Es</default-locale>
          <supported-locale>es_Es</supported-locale>
          </locale-config>

          <locale-config> <default-locale>es_Es</default-locale> <supported-locale>es_Es</supported-locale> </locale-config>

          I changed them to "en_Us" but the error still occurs.

          If you have an idea please give me an hand !

          Regards,
          Radu


          • 2. Re:
            Nick Belaevski Master

            Hi Radu,

            Try el-api and el-ri from here: http://repository.jboss.org/maven2/javax/el/.
            As I remember, one distribution of EL available on the Internet was build without Messages.properties file, so that's causing problems when some standard message is being generated.

            • 3. Re:
              radu radu Newbie

              Hi !
              Thanks a lot for posting adding those jars, to my build path had solved the problem, i tried many solutions but this was the right one !

              I used "el-api" version 1.

              Also, now i tried to reinspect the error , i removed those jars from my build path but the application is still running, so that error does not occurs any more even if now i removed those jars, strange...

              Best regards,
              Radu