Results 1 to 5 of 5

Thread: ResourceBundle [XX] not found for MessageSource: : (

  1. #1

    Default ResourceBundle [XX] not found for MessageSource: : (

    Hi !

    I'm still experimenting some features of the Spring Core container and the App Context.

    I made a simple AWT app as a test and i wish to display with it a message from my bundle , but on run time here the log i get :

    Code:
    2005-06-28 10&#58;25&#58;29,272 WARN &#91;org.springframework.context.support.ResourceBundleMessageSource&#93; - <ResourceBundle &#91;AO&#93; not found for MessageSource&#58; Can't find bundle for base name AO, locale fr_FR>
    with the following config.xml :

    Code:
    	
    ...
    <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
    		<property name="basenames">
    			<list>
    				<value>AO</value>
    			</list>
    		</property>
    	</bean>	
    ...
    And here my files :


    I've tried to move the bundle files to be sure that it was in the classpath but it failed to change the warning...

    Any ideas ?

  2. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    If you locate the file directly under "src" (or any other source folder) Eclipse will copy it to "classes". So it will be in the classpath on execution.

    Regards,
    Andreas

  3. #3

    Default

    I have already tried this but i got the same message. I placed the AO and AO_fr_FR in the src directory ( default package) and inside the package that really use it...

    But anyway , i got the same "warning"... :x

  4. #4
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    Ah, now I see it. The file extension ".properties" seems to be missing for your resource bundles.

    It has to be AO.properties and AO_fr_FR.properties.

    Regards,
    Andreas

  5. #5

    Default

    :?

    ok...

    Just one last question :

    "Do you know a hole deeply enough for me to hide forever ?"

    thanks++

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Unit testing with JOTM and JtaTransactionManager
    By lalle in forum Architecture
    Replies: 1
    Last Post: Oct 15th, 2005, 09:05 AM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  5. Replies: 1
    Last Post: Apr 13th, 2005, 10:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •