jboss7.x - Not able to set options in JAVA_OPTS in JBoss openshift -


i want change server running timezone. want add timezone option in java_opts. (-duser.timezone=gmt). have tried edit '/var/lib/openshift/548c33cce0b8cd44d3000083/jbossas/bin/standalone.conf' in jboss cartridge of openshift, failed because of permission denied.

i have referred 1 solution mentioned in https://forums.openshift.com/how-to-pass-jvm-options-to-jboss-7as. add "export java_opts="$java_opts -duser.timezone=gmt" in 'pre_start_jbossas' file in action_hooks folder , push it. did same , working fine. timezone options correctly added in java_opts @ time of server start up.

problem here is, @ time of cartridge restart, timezone option not present in java_opts. please provide solution.

use java_opts_ext instead. remember put trailing , leading spaces, like:

export java_opts_ext=" -duser.timezone=gmt " 

Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -