Troubleshooting
Problem
You notice WebSphere Application Server JVM instances do not pick up default locale from user locale if WASService was used to start on Windows.
Cause
Once WebSphere Application Server JVM is registered to Windows Service using WASService.exe, and it is configured with log on as "Local System account", then even though user's System Locale has been changed to different languages, since JVM will be started up as Local System account, Locale.getDefault() will return system locale instead of newly changed user locale.
Resolving The Problem
In order for Server JVM to pick up user locale configured from regional settings of the operating system, WebSphere Application Server Windows Service entry need to be modified to log on as current user's account.
Once that change has been made, Server JVM should pick up user's current locale, and Locale.getDefault() will return currently selected locale properly.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21627822