Can't find bundle for base name classpath:message
Hi
I am having trouble in getting the resource bundle getting picked up by my app.
Here are the configs setting:
*-servlet.xml
<!-- Message Source -->
<bean id="messageSource"
class="org.springframework.context.support.Resourc eBundleMessageSource">
<property name="basename" value="classpath:message"></property>
</bean>
And I have the corresponding message.properties in my classpath and when i build , I can see the file under /classes/message.properties.
But when I run myapp ( tomcat 6 ) , I get the following error:
[org.springframework.context.support.ResourceBundle 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 massage.properties under the directory /WEB-INF/messsage.properties
Also i tried to change the name of the file to mymessage.properties and ofcourse change the basename to mymessage.properties. But no luck.
but I cant get this simple thing to work.
Any help is much appreciated.