On 07/20/2015 06:10 PM, Eli Mesika wrote:
Hi

I upgraded my workstation from fc20 to fc21 and had troubles running 
engine-setup on a 3.5 application.
The following instructions did the trick to me (Thanks to Alon Bar Lev)

1) Download jboss-eap-x.y from http://www.jboss.org/products/eap/overview/ (zip)
2) Extract it to /opt (insure that it has the right permissions)
3) set the following environment variables :
    a) export OVIRT_ENGINE_JAVA_HOME=/usr/lib/jvm/jre
    b) export OVIRT_ENGINE_JAVA_HOME_FORCE=1
4) run engine-setup as follows :
    engine-setup --jboss-home=/opt/jboss-eap-x.y



I tried the same thing with fc22 and having some issues with the script */home/blr/rnachimu/ovirt-engine/share/ovirt-engine/bin/java-home*. It doesn't accept the installed JRE as supported though it is openjdk 1.7.0_75.

[rnachimu@rnachimu ovirt-engine]$ sh -x ./packaging/bin/java-home
+ '[' -x ./packaging/bin/java-home.local ']'
+ '[' -n /usr/lib/jvm/java-se-7u75-ri/ ']'
+ validjre /usr/lib/jvm/java-se-7u75-ri/
+ local dir=/usr/lib/jvm/java-se-7u75-ri/
+ local ret=1
+ '[' -x /usr/lib/jvm/java-se-7u75-ri//bin/java ']'
++ /usr/lib/jvm/java-se-7u75-ri//bin/java -version
++ sed -e 's/^java version "1\.7\.0.*/VERSION_OK/' -e 's/^OpenJDK .*(.*).*/VENDOR_OK/'
+ local 'version=openjdk version "1.7.0_75"
VENDOR_OK
VENDOR_OK'
+ echo 'openjdk version "1.7.0_75"
VENDOR_OK
VENDOR_OK'
+ grep -q VERSION_OK
+ return 1
+ exit 1
[rnachimu@rnachimu ovirt-engine]$

[rnachimu@rnachimu ovirt-engine]$ echo $OVIRT_ENGINE_JAVA_HOME
/usr/lib/jvm/java-se-7u75-ri/
[rnachimu@rnachimu ovirt-engine]$

Note: I am building branch *ovirt-engine-3.5-gluster *and I manually tweaked the script to say its accepted and its working fine :-)

Regards,
Ramesh

Thanks
Eli Mesika

_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel

_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel

Reply via email to