Changing runtime environment configuration
Posted: Tue Dec 25, 2012 2:16 pm
Hi!
I'm trying to change the runtime environment, but I also see the line in a log file:
[ WARN] 22:47:57 RuntimeEnvironmentPropertiesConfigurer - Unable to determine runtime environment, using default environment 'development'
Default settings for RuntimeEnvironmentPropertiesConfigurer is used in applicaionContext.xml :
<bean id="blConfiguration" class="org.broadleafcommerce.common.config.RuntimeEnvironmentPropertiesConfigurer" />
I run broadleaf on tomcat and specially change /etc/init.d/tomcat7-site.sh that it shows JAVA_OPTS on startup:
"Starting Tomcat servlet engine for site tomcat7 with JAVA_OPTS=-Druntime.environment=production -Djava.awt.headless=true -Xmx512m -XX:+UseConcMarkSweepGC"
but still used the default environment.
Help me please. What am I doing wrong?
I'm trying to change the runtime environment, but I also see the line in a log file:
[ WARN] 22:47:57 RuntimeEnvironmentPropertiesConfigurer - Unable to determine runtime environment, using default environment 'development'
Default settings for RuntimeEnvironmentPropertiesConfigurer is used in applicaionContext.xml :
<bean id="blConfiguration" class="org.broadleafcommerce.common.config.RuntimeEnvironmentPropertiesConfigurer" />
I run broadleaf on tomcat and specially change /etc/init.d/tomcat7-site.sh that it shows JAVA_OPTS on startup:
"Starting Tomcat servlet engine for site tomcat7 with JAVA_OPTS=-Druntime.environment=production -Djava.awt.headless=true -Xmx512m -XX:+UseConcMarkSweepGC"
but still used the default environment.
Help me please. What am I doing wrong?