I am trying the v2.0 buildpack on CF v155. In the .java-buildpack.log I can see the buildpack detecting my custom java_opts.yml
2014-02-10T13:29:29.59+0000 [Buildpack] DEBUG Successfully required JavaBuildpack::Framework::JavaOpts
2014-02-10T13:29:29.59+0000 [ConfigurationUtils] DEBUG Configuration from /tmp/buildpacks/java-buildpack-v2/config/java_opts.yml: {"java_opts"=>"-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true -Dcom.sun.xml.bind.v2.runtime.JAXBContextImpl.fastBoot=true -DSPRING_PROFILES_ACTIVE=cloud -Duser.timezone=Europe/Amsterdam"}
20
The startup command is also correct AFAIK:
gcf files helloworld staging_info.yml
Getting files for app helloworld in org main / space development as admin...
OK
---
detected_buildpack:
start_command: JAVA_HOME=$PWD/.java-buildpack/open_jdk_jre JAVA_OPTS="-DSPRING_PROFILES_ACTIVE=cloud
-Dcom.sun.xml.bind.v2.runtime.JAXBContextImpl.fastBoot=true -Dhttp.port=$PORT -Djava.io.tmpdir=$TMPDIR
-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true -Duser.timezone=Europe/Amsterdam
-XX:MaxPermSize=104857K -XX:OnOutOfMemoryError=$PWD/.java-buildpack/open_jdk_jre/bin/killjava.sh
-XX:PermSize=104857K -Xms768M -Xmx768M -Xss1M" $PWD/.java-buildpack/tomcat/bin/catalina.sh
run
But my app is not seeing any of the system properties...
System.out.println("SPRING_PROFILES_ACTIVE="+ System.getenv("SPRING_PROFILES_ACTIVE"));
System.out.println("user.timezone="+ System.getenv("user.timezone"));
output:
SPRING_PROFILES_ACTIVE=null
user.timezone=null
What am I missing?
I am trying the v2.0 buildpack on CF v155. In the .java-buildpack.log I can see the buildpack detecting my custom java_opts.yml
The startup command is also correct AFAIK:
gcf files helloworld staging_info.yml
Getting files for app helloworld in org main / space development as admin...
OK
But my app is not seeing any of the system properties...
output:
What am I missing?