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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -