Bug 1009152
Summary: | JBoss cartridges are not using env variables to determine JAVA_HOME | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | John Keck <jkeck> |
Component: | Containers | Assignee: | Brenton Leanhardt <bleanhar> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.2.1 | CC: | baulakh, bmeng, gpei, jhonce, John.Liptak, libra-onpremise-devel, nmone, xiama, yanpzhan |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-jbosseap-2.3.11.3-1.git.0.4d0ae9b.el6op, openshift-origin-cartridge-jbossews-0.4.11-1.git.0.727562d.el6op | Doc Type: | Bug Fix |
Doc Text: |
Due to a bug in the EAP and EWS cartridges, the JAVA_HOME environment variable got overridden by marker files. This fix allows the JAVA_HOME environment variable to be read from the environment, resulting in a more consistent user experience.
|
Story Points: | --- |
Clone Of: | 1004927 | Environment: | |
Last Closed: | 2013-10-16 15:39:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1004927 | ||
Bug Blocks: |
Description
John Keck
2013-09-17 19:43:23 UTC
We need to get this pulled into a 1.2.x release of OSE Upstream commit: commit 0089fad0e2f8baee182ef7012ccc9f809f4a29f3 Author: Dan Mace <ironcladlou> Date: Fri Sep 6 09:36:33 2013 -0400 Bug 1004927: Don't override JAVA_HOME in standalone.conf Verify this issue with openshift-origin-cartridge-jbosseap-2.3.11.3-1.git.0.4d0ae9b.el6op.noarch on puddle 1.2/2013-09-27.1 Create a JbossEAP-6.0 app, check the JAVA_HOME env variables: [app2-1234.0927-ose.com.cn 5247a94c5946d3132c00005f]\> env|grep JAVA JAVA_HOME=/etc/alternatives/java_sdk_1.6.0 Check the java app is using: [app2-1234.0927-ose.com.cn 5247a94c5946d3132c00005f]\> ps -ef |grep java |grep -v grep 1003 12681 12504 0 00:15 ? 00:00:41 /etc/alternatives/java_sdk_1.6.0/bin/java -D[Standalone] -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=5247a94c5946d3132c00005f -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djboss.node.name=app2-1234.0927-ose.com.cn -Djgroups.bind_addr=127.1.245.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on -Dorg.jboss.boot.log.file=/var/lib/openshift/5247a94c5946d3132c00005f/jbosseap/standalone/log/boot.log -Dlogging.configuration=file:/var/lib/openshift/5247a94c5946d3132c00005f/jbosseap/standalone/configuration/logging.properties -jar /var/lib/openshift/5247a94c5946d3132c00005f/jbosseap/jboss-modules.jar -mp /var/lib/openshift/5247a94c5946d3132c00005f/app-root/runtime/repo//.openshift/config/modules:/var/lib/openshift/5247a94c5946d3132c00005f/jbosseap/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/var/lib/openshift/5247a94c5946d3132c00005f/jbosseap They are the same, and it's using JDK instead of JRE now. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1435.html |