oVirt 3.5 and 4.0 on the same devel machine

Hi! I've recently upgraded to Fedora 22 and openjdk-1.8, as latest master requires it for building. But today I needed to run 3.5 and it refused to run on 1.8. I patched share/ovirt-engine/bin/java-home and after that it started and hanged up on 'Listening for transport dt_socket at address: 8787'. Is it possible somehow to run 3.5 on 1.8 or to install 1.7 and 1.8 simultaneously on Fedora 22? I'd like to avoid deployment of VM with old Fedora and separate development environment in it to run 3.5... Shmuel

On Wednesday, November 11, 2015 09:43:45 PM Shmuel Melamud wrote:
Hi!
I've recently upgraded to Fedora 22 and openjdk-1.8, as latest master requires it for building.
But today I needed to run 3.5 and it refused to run on 1.8. I patched share/ovirt-engine/bin/java-home and after that it started and hanged up on 'Listening for transport dt_socket at address: 8787'.
Is it possible somehow to run 3.5 on 1.8 or to install 1.7 and 1.8 simultaneously on Fedora 22? I'd like to avoid deployment of VM with old Fedora and separate development environment in it to run 3.5...
Shmuel
Make sure you have both java 1.7 and 1.8 installed as well as both Jboss 7.1.1 final and wildfly. Then just set your JAVA_HOME to point to either 7 or 8 depending on what you are working on and the same with JBOSS_HOME But honestly it is just easier to have a VM with the correct development environment configured that is what I do.

Hi! On Wed, Nov 11, 2015 at 9:57 PM, Alexander Wels <awels@redhat.com> wrote:
Make sure you have both java 1.7 and 1.8 installed as well as both Jboss 7.1.1 final and wildfly. Then just set your JAVA_HOME to point to either 7 or 8 depending on what you are working on and the same with JBOSS_HOME
I don't need to set JAVA_HOME, because java_home script does it for me, it automatically locates the corresponding JDK, if it's installed. The problem is that OpenJDK packages for 1.7 and 1.8 are conflicting with each other. Shmuel

This is a multi-part message in MIME format. --------------090503060208020605060705 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/12/2015 04:31 AM, Shmuel Melamud wrote:
Hi!
On Wed, Nov 11, 2015 at 9:57 PM, Alexander Wels <awels@redhat.com <mailto:awels@redhat.com>> wrote:
Make sure you have both java 1.7 and 1.8 installed as well as both Jboss 7.1.1 final and wildfly. Then just set your JAVA_HOME to point to either 7 or 8 depending on what you are working on and the same with JBOSS_HOME
I don't need to set JAVA_HOME, because java_home script does it for me, it automatically locates the corresponding JDK, if it's installed. The problem is that OpenJDK packages for 1.7 and 1.8 are conflicting with each other.
i faced exactly the same problem. I solved it in following way. 1) Download jboss-eap-x.y fromhttp://www.jboss.org/products/eap/overview/ (zip) 2) Extract it to /opt (insure that it has the right permissions) 3) Download openjdk 1.7 as an archive ans extract it to /usr/lib/jvm 4) set the following environment variables : a) export OVIRT_ENGINE_JAVA_HOME=/usr/lib/jvm/<extraced-jdk-folder> b) export OVIRT_ENGINE_JAVA_HOME_FORCE=1 5) run #sh -x ./packaging/bin/java-home and ensure that it returns 0 otherwise u may have to patch this. 6) run engine-setup as follows : engine-setup --jboss-home=/opt/jboss-eap-x.y More info at https://www.mail-archive.com/devel@ovirt.org/msg04607.html Regards, Ramesh
Shmuel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
--------------090503060208020605060705 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <br> <br> <div class="moz-cite-prefix">On 11/12/2015 04:31 AM, Shmuel Melamud wrote:<br> </div> <blockquote cite="mid:CAMFVLy1qcT=dUcWnwYva4ViAUAvJFVQo1LgC4zxtoTVz11hCow@mail.gmail.com" type="cite"> <div dir="ltr"> <div class="gmail_default" style="font-family:monospace,monospace">Hi!<br> </div> <div class="gmail_extra"><br> <div class="gmail_quote">On Wed, Nov 11, 2015 at 9:57 PM, Alexander Wels <span dir="ltr"><<a moz-do-not-send="true" href="mailto:awels@redhat.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:awels@redhat.com">awels@redhat.com</a></a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div class="HOEnZb"> <div class="h5"> </div> </div> Make sure you have both java 1.7 and 1.8 installed as well as both Jboss 7.1.1<br> final and wildfly. Then just set your JAVA_HOME to point to either 7 or 8<br> depending on what you are working on and the same with JBOSS_HOME<br> </blockquote> </div> <br> <div class="gmail_default" style="font-family:monospace,monospace">I don't need to set JAVA_HOME, because java_home script does it for me, it automatically locates the corresponding JDK, if it's installed. The problem is that OpenJDK packages for 1.7 and 1.8 are conflicting with each other.<br> </div> <br> </div> </div> </blockquote> <br> i faced exactly the same problem. I solved it in following way.<br> <br> <pre wrap="">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) Download openjdk 1.7 as an archive ans extract it to /usr/lib/jvm 4) set the following environment variables : a) export OVIRT_ENGINE_JAVA_HOME=/usr/lib/jvm/<extraced-jdk-folder> b) export OVIRT_ENGINE_JAVA_HOME_FORCE=1 5) run #sh -x ./packaging/bin/java-home and ensure that it returns 0 otherwise u may have to patch this. 6) run engine-setup as follows : engine-setup --jboss-home=/opt/jboss-eap-x.y </pre> More info at <a href="https://www.mail-archive.com/devel@ovirt.org/msg04607.html"><a class="moz-txt-link-freetext" href="https://www.mail-archive.com/devel@ovirt.org/msg04607.html">https://www.mail-archive.com/devel@ovirt.org/msg04607.html</a></a><br> <br> Regards,<br> Ramesh<br> <br> <blockquote cite="mid:CAMFVLy1qcT=dUcWnwYva4ViAUAvJFVQo1LgC4zxtoTVz11hCow@mail.gmail.com" type="cite"> <div dir="ltr"> <div class="gmail_extra"> <div class="gmail_default" style="font-family:monospace,monospace">Shmuel</div> <br> </div> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ 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> --------------090503060208020605060705--
participants (3)
-
Alexander Wels
-
Ramesh Nachimuthu
-
Shmuel Melamud