Dear All,
I am having Standalone
JAVA application(1.6) with Spring 2.5.6 framework and using ReloadableResourceBundleMessageSource for reloading the messages at run time. The issue is when it comes to Windows 7, it is working perfectly. If I am putting the same application into SUN Solaris Box, messageSource bean itself not taking the property data.
Bean config working in Windows 7:
Above configuration is not at all loaded while putting into Solaris OS, so I made the changes like
and property contents loaded but it is of no use since data is cached for ever. Please find the log also:
Windows 7 log:
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file: D:\workspace\propfile_en_IN] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file: D:\workspace\propfile_en] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:544] Loading properties [propfile.properties]
Solaris log for error:
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [/opt/propfile] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [/opt/propfile] - neither plain properties nor XML
ERROR [com.TestReload:424] Exception : No message found under code '0' for locale 'null'.
org.springframework.context.NoSuchMessageException: No message found under code '0' for locale 'null'.
at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:136)
at java.lang.Thread.run(Thread.java:619)
Solaris log after setting cacheSeconds value to -1:
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:500] No properties file found for [file:/opt/propfile_en] - neither plain properties nor XML
DEBUG [org.springframework.context.support.ReloadableResourceBundleMessageSource:544] Loading properties [rtgs.properties]
Please help me out to get rid of this issue.
Thanks in advance,
Pons.