It can happen that you 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 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 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=${tomcat.jmx.port}  -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -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 -Dlog4j.configuration=log4j_init_tomcat.properties -Djava.util.logging.config.file=jdk_logging.properties -Djava.io.tmpdir="${HYBRIS_TEMP_DIR} -Duser.language=de -Duser.country=DE -Duser.region=DE
tomcat.debugjavaoptions=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Duser.country=DE -Duser.region=DE
standalone.javaoptions=-server -Xmx1g -XX:MaxPermSize=400M  -Duser.language=de -Duser.country=DE -Duser.region=DE

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

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

Add comment


Security code
Refresh