
This is a multi-part message in MIME format. --------------090001080307060003030606 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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
--------------090001080307060003030606 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <br> <br> <div class="moz-cite-prefix">On 07/20/2015 06:10 PM, Eli Mesika wrote:<br> </div> <blockquote cite="mid:1295856398.1649581.1437396034556.JavaMail.zimbra@redhat.com" type="cite"> <pre wrap="">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 <a class="moz-txt-link-freetext" href="http://www.jboss.org/products/eap/overview/">http://www.jboss.org/products/eap/overview/</a> (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 </pre> </blockquote> <br> <br> I tried the same thing with fc22 and having some issues with the script <b>/home/blr/rnachimu/ovirt-engine/share/ovirt-engine/bin/java-home</b>. It doesn't accept the installed JRE as supported though it is openjdk 1.7.0_75. <br> <br> [rnachimu@rnachimu ovirt-engine]$ sh -x ./packaging/bin/java-home<br> + '[' -x ./packaging/bin/java-home.local ']'<br> + '[' -n /usr/lib/jvm/java-se-7u75-ri/ ']'<br> + validjre /usr/lib/jvm/java-se-7u75-ri/<br> + local dir=/usr/lib/jvm/java-se-7u75-ri/<br> + local ret=1<br> + '[' -x /usr/lib/jvm/java-se-7u75-ri//bin/java ']'<br> ++ /usr/lib/jvm/java-se-7u75-ri//bin/java -version<br> ++ sed -e 's/^java version "1\.7\.0.*/VERSION_OK/' -e 's/^OpenJDK .*(.*).*/VENDOR_OK/'<br> + local 'version=openjdk version "1.7.0_75"<br> VENDOR_OK<br> VENDOR_OK'<br> + echo 'openjdk version "1.7.0_75"<br> VENDOR_OK<br> VENDOR_OK'<br> + grep -q VERSION_OK<br> + return 1<br> + exit 1<br> [rnachimu@rnachimu ovirt-engine]$<br> <br> [rnachimu@rnachimu ovirt-engine]$ echo $OVIRT_ENGINE_JAVA_HOME<br> /usr/lib/jvm/java-se-7u75-ri/<br> [rnachimu@rnachimu ovirt-engine]$<br> <br> Note: I am building branch <b>ovirt-engine-3.5-gluster </b>and I manually tweaked the script to say its accepted and its working fine :-)<br> <br> Regards,<br> Ramesh<br> <br> <blockquote cite="mid:1295856398.1649581.1437396034556.JavaMail.zimbra@redhat.com" type="cite"> <pre wrap=""> Thanks Eli Mesika _______________________________________________ Devel mailing list <a class="moz-txt-link-abbreviated" href="mailto:Devel@ovirt.org">Devel@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/devel">http://lists.ovirt.org/mailman/listinfo/devel</a> </pre> </blockquote> <br> </body> </html> --------------090001080307060003030606--