Announcement Announcement Module
No announcement yet.
Can't find bundle for base name classpath:message Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't find bundle for base name classpath:message


    I am having trouble in getting the resource bundle getting picked up by my app.

    Here are the configs setting:

    <!-- Message Source -->
    <bean id="messageSource"
    class=" eBundleMessageSource">
    <property name="basename" value="classpath:message"></property>

    And I have the corresponding in my classpath and when i build , I can see the file under /classes/

    But when I run myapp ( tomcat 6 ) , I get the following error:

    [ MessageSource] - <ResourceBundle [classpath:message] not found for MessageSource: Can't find bundle for base name classpath:message, locale en_US>

    - I have tried different things ( after googling around )
    like : changing the value specified in the basename to /WEB-INF/message and then keeping the under the directory /WEB-INF/

    Also i tried to change the name of the file to and ofcourse change the basename to But no luck.
    but I cant get this simple thing to work.
    Any help is much appreciated.
    Last edited by tdhaayushverma; Jun 10th, 2008, 05:51 PM.

  • #2
    Its been a while and i am still stuck on this. Any help plz.


    • #3
      Did you try removing the "classpath:" and just try with "message" ? You dont need to prefix it with "classpath:" and you also dont need to suffix with ".properties"


      • #4
        removing the classpath did the trick.

        I was trying this for a long time. tried so many things but didnt remove that stupid classpath.
        This forum is great.

        Thank you very much.

        Although why would the classpath option not work. \I have a similar setting in my web.xml and that works fine.