meta data for this page

How to change the locale of the SAP hybris platform

It can happen that your tests use localized values and they only run on one Locale. If you have developers in different countries, you must change the locale of the SAP hybris platform to a standard locale. Here is how to do it.

Properties to change the locale

The following properties contain the parameters sent to the jvm of the tomcat and of the ant instance:

tomcat.generaloptions=-Xms2048m -Xmx2048M -XX:PermSize=300M -XX:MaxPermSize=300M -Xloggc:/srv/hybris/log/tomcat/gc/gc.log -XX:+PrintGCDetails -Xbootclasspath/p:/srv/hybris/wily/connectors/AutoProbeConnector_1.6.0.24_64bit.jar:/srv/hybris/wily/Agent.jar:/srv/hybris/wily/ext/WebAppSupport.jar -Dcom.wily.introscope.agent.agentName=TomcatAgent_CARHARTT-APP01 -Dcom.wily.introscope.agentProfile=/srv/hybris/wily/IntroscopeAgent.profile${tomcat.jmx.port} -Dorg.tanukisoftware.wrapper.WrapperManager.mbean=true -Djava.endorsed.dirs="%CATALINA_HOME%/lib/endorsed" -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% -Dfile.encoding=UTF-8"${HYBRIS_TEMP_DIR} -Duser.language=de -Duser.region=DE
tomcat.debugjavaoptions=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Duser.region=DEstandalone.javaoptions=-server -Xmx1g -XX:MaxPermSize=400M  -Duser.language=de -Duser.region=DE

To change the locale add the parameters user.language, and user.region to the end of the parameter list as shown in the example above. You can get the original values from and The modified properties must be stored in

When the server starts, Hybris shows the locale of JVM:

INFO  [WrapperSimpleAppMain] [hybrisserver]              /usr/lib/jvm/java-7-oracle/jre
INFO  [WrapperSimpleAppMain] [hybrisserver] VM Locale:   language=de,country=DE,region=DE
INFO  [WrapperSimpleAppMain] [hybrisserver] Cache:       RegionCache is not yet initialized. [de.hybris.platform.cache.impl.RegionCacheAdapter]
INFO  [WrapperSimpleAppMain] [hybrisserver] Server type: tomcat

–Based on Hybris 4.8.12


Enter your comment. Wiki syntax is allowed: