Bug 1120255
Summary: | Wrong JAVA_HOME/JRE_HOME auto-detection on RHEL | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Web Server 2 | Reporter: | Michal Haško <mhasko> |
Component: | tomcat6, tomcat7 | Assignee: | Coty Sutherland <csutherl> |
Status: | CLOSED DEFERRED | QA Contact: | Michal Karm Babacek <mbabacek> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 2.1.0 | CC: | jdoyle, pslavice, rsvoboda, smumford |
Target Milestone: | CR01 | ||
Target Release: | 2.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Known Issue | |
Doc Text: |
When using JBoss Enterprise Web Server 3.0 with Red Hat Enterprise Linux, installing Java from RPM results in the JAVA_HOME or JRE_HOME variable unexpectedly not being set. The tomcat start up scripts are able to automatically detect these variables, but when Java is installed from RPMs, <command>which java</command> translated to <filename class="directory">/usr/bin/java</filename>, which is a symbolic link maintained by alternatives. As a result, the <literal>JAVA_HOME</literal> and <literal>JRE_HOME</literal> variables are incorrectly set to <filename class="directory">/usr</filename>. <literal>JRE_HOME</literal> and <literal>JAVA_HOME</literal> using this incorrect value has not historically resulted in any problems for users (based on bug reports and user support), but a problem manifests when using the <filename>daemon.sh</filename> script:
<screen> # ./daemon.sh start' Cannot find any VM in Java Home /usr
# grep 'Cannot find any VM in Java Home' ./*
Binary file ./jsvc matches</screen>
The <filename>jsvc</filename> is only used in <filename>daemon.sh</filename>, therefore this problem does not manifest when tomcat is started using the <filename>startup.sh</filename> or <filename>catalina.sh</filename> scripts but does appear when using <filename>daemon.sh</filename>.
This is a known issue in JBoss Enterprise Web Server 3.0 and there is currently no workaround for this problem.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-09 14:49:23 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: |
Description
Michal Haško
2014-07-16 14:39:36 UTC
See JWS-797 |