Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.2
-
Fix Version/s: 0.2.1
-
Component/s: Project infrastructure
-
Labels:None
-
Environment:Ubuntu 6.06, Java 1.5
Description
1. Capture a system call level trace such as this during a grails app runtime instance
$ strace -f -o run.trace grails run-app # Linux system call trace, following children with -f
and then load a page that uses, e.g., <g:message> tag. It is revealed that i18n/messages.properties is stat'd but never actually opened or read. A consequence is that properties defined in the message bundle are silently unavailable to the application.
2. Proving the messages file is stat'd by the OS:
$ egrep '^[0-9]+ stat.*tmp.*i18n/messages\.properties' run.trace
12590 stat64("/home/petrovic/Projects/TeachersP/tmp/war/WEB-INF/grails-app/i18n/messages.properties",
12590 stat64("/home/petrovic/Projects/TeachersP/tmp/war/WEB-INF/grails-app/i18n/messages.properties", {st_mode=S_IFREG|0644, st_size=2167, ...}
) = 0
...
3. Proving the message file is never read by the OS, by proving it is never open'd:
$ egrep '^[0-9]+ open.*tmp.*i18n/messages\.properties' run.trace
which produces no output.
I'm currently examining this bit of configuration, printed to stdout at runtime
[groovy] <bean
[groovy] class="org.springframework.context.support.ReloadableResourceBundleMessageSourc
e" id="messageSource">
[groovy] <property name="basename">
[groovy] <value>WEB-INF/classes/grails-app/i18n/messages</value>
[groovy] </property>
[groovy] </bean>
wondering if the <value> element should read
<value>WEB-INF/grails-app/i18n/messages</value>
Where is the Spring template config such that I can change and test??