facebook

JSF Resource bundle cannot be found on classpath

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #315578 Reply

    jiuding
    Participant

    Hi,

    I installed myEclipse 9.0. But when it validates JSF pages, it show error for the following line.

    <f:loadBundle basename=”com.yourcompany.messages” var=”msg”/>

    error message is:

    Resource bundle com.yourcompany.messages cannot be found on classpath XXX.jsp / line 3 JSF Problem

    but the file is there, but with appendix, messages.properties.

    It is corect in 8.6.

    Wish you can fix it soon.

    *** Date:
    Tuesday, March 29, 2011 12:50:49 PM GMT+08:00

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 9.0
    Build id: 9.0-20110318

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 9.0
    Build id: 9.0-20110318

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\programFiles\MyEclipse9\MyEclipse 9\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\programFiles\MyEclipse9\MyEclipse 9\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201102231800\eclipse_3213.dll
    -startup
    C:\programFiles\MyEclipse9\MyEclipse 9\../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    -install
    C:\programFiles\MyEclipse9\MyEclipse 9
    -configuration
    C:\programFiles\MyEclipse9\MyEclipse 9\configuration
    -vm
    C:\programFiles\MyEclipse9\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

    #315583 Reply

    support-joy
    Member

    jiuding,

    Thank you for your installation details. I am afraid, I cannot replicate this issue on ME 9.0. Please see the attached screenshot. Let me know if you have done it different. If yes, please attach screenshot and also include steps. Please refer this FAQ on how to attach screenshots using [pm] / [post reply] – https://www.genuitec.com/forums/topic/troubleshooting-how-to-upload-attachments-on-forum/&highlight=

    Attachments:
    You must be logged in to view attached files.
    #315637 Reply

    jiuding
    Participant

    Hi,

    Sorry, my fault. In my classpath the messages.properties file is started with Capital, which is Messages.properties. That did not cause problem in 8.6, but in 9.0 not.

    #315649 Reply

    support-joy
    Member

    jiuding,

    It should not matter if your messages.properties filename starts with a capital. Make sure the references to your property file are correct.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: JSF Resource bundle cannot be found on classpath

You must be logged in to post in the forum log in