I have a Struts 2 web application running on Tomcat 7 on Windows Server 2008 (only Tomcat, without Apache or IIS). The texts in the application are stored in .properties files and are managed by the Struts 2 I18N Interceptor. In JSP, I use the <s:text name="menu.help" /> tags.
Several times (twice in the last month), the application loses links to property files because they have been unloaded, and instead it starts to display keys. For example, for English, "Help" is always displayed, but when I get this problem, it starts showing "menu.help". I have to restart the application for it to work properly again.
I searched for related errors in the logs, but could not find anything related to I18n or properties. I also searched for OutOfMemoryError , but could not find any.
Do you know what could be the problem? Can you think how I can fix it?
Thanks
Edit:
This is an important part of my struts.xml:
<struts> <constant name="struts.custom.i18n.resources" value="resources" /> ...
And the properties files (resources_en.properties, resources_es.properties, ...) are in the WEB-INF/classes .
source share