Please use [ code][/code ] tags when posting code..
Will do!
I went over my web.xml (provided below) and I do not see anything out of the ordinary that would cause it to load the configuration twice. Is there somewhere else I should be checking which could cause this behavior?
Again check your setup and you might want to check in your own code what type of LocaleResolver is returned from RequestContextUtils.getLocaleResolver, that should be the same as your current one.
I checked this and I am indeed getting back a SessionLocaleResolver from RequestContextUtils.getLocaleResolver
Also, the first time a user logs in and is directed to the home page (the one which should be in French) I noticed the Locale object set by Spring SesssionLocaleResolver does exist and it is the appropriate locale (fr_FR). The page just doesn't change until a second time around.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="oa-web-app" version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/config/spring/wiring/web-application-config.xml,
classpath:/config/spring/wiring/datasource-config.xml,
classpath:/config/spring/wiring/context-config.xml,
classpath:/config/spring/wiring/weaving-config.xml,
classpath:/config/spring/wiring/cache-config.xml,
classpath:/config/spring/wiring/integration-management-config.xml,
classpath:/config/spring/wiring/service-config.xml,
classpath:/config/spring/wiring/dao-config.xml,
classpath:/config/spring/wiring/controller-config.xml,
classpath:/config/spring/wiring/security-config.xml,
classpath:/config/spring/wiring/mail-config.xml,
classpath:/config/spring/wiring/timer-config.xml,
classpath:/config/spring/wiring/webmvc-config.xml,
classpath:/config/spring/wiring/webflow-config.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>Spring-MVC-for-OA</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value></param-value>
</init-param>
<!--<load-on-startup>1</load-on-startup>-->
</servlet>
<servlet-mapping>
<servlet-name>Spring-MVC-for-OA</servlet-name>
<url-pattern>*.html</url-pattern>
<url-pattern>/spring/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>