IBM Support

WebSphere Application Server JVM instances do not pick up default locale from user locale

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.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"System Management\/Repository","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.5;8.0;7.0;6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21627822