Bug 772453

Summary: engine compilation failure with OpenJDK 1.7.0
Product: [Retired] oVirt Reporter: Yaniv Kaul <ykaul>
Component: ovirt-engine-coreAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: urgent    
Version: unspecifiedCC: acathrow, iheim, jkt, juan.hernandez, ykaul
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: ovirt-engine-3.1.0-0.1.20120620git6ef9f8.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-09 08:00:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yaniv Kaul 2012-01-08 11:59:49 UTC
Description of problem:
When using JDK 1.7 , oVirt engine fails to compile:
...
[INFO] Compiling 186 source files to /home/ykaul/ovirt-engine/backend/manager/modules/dal/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/ykaul/ovirt-engine/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/PGHack.java:[9,7] error: PGHack is not abstract and does not override abstract method getParentLogger() in CommonDataSource

Version-Release number of selected component (if applicable):
latest commit hash: f2599fb6ad061d7d2409bb41138553a95499debc
Using:
[ykaul@ykaul alternatives]$ rpm -qa |grep openjdk |grep 1.7
java-1.7.0-openjdk-devel-1.7.0.1-2.0.3.fc16.x86_64
java-1.7.0-openjdk-1.7.0.1-2.0.3.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install openjdk 1.7
2. Compile ovirt-engine.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 lpeer 2012-01-24 09:00:08 UTC
ATM JDK 7 is not supported.

see in the wiki the 'Prerequisites' section:
http://www.ovirt.org/wiki/Building_Ovirt_Engine

"Linux based operating system with support for OpenJDK 1.6.0"

Comment 2 Yaniv Kaul 2012-04-19 09:46:43 UTC
In Fedora 17, it is the default JDK.
http://gerrit.ovirt.org/2347 should be handling it?

Re-opening.

Comment 3 Juan Hernández 2012-04-19 09:52:11 UTC
Proposed fix is available here:

http://gerrit.ovirt.org/2347

Comment 4 Itamar Heim 2012-05-09 08:19:41 UTC
patch is merged

Comment 5 Juan Hernández 2012-05-11 07:48:16 UTC
Additional fixes are needed in webadmin. The proposed change is available here:

http://gerrit.ovirt.org/4315

I am moving the bug back to POST till this additional change is reviewed and eventually merged.

Comment 6 Itamar Heim 2012-05-29 14:31:18 UTC
modified?

Comment 7 Juan Hernández 2012-05-29 14:33:56 UTC
(In reply to comment #6)
> modified?

Yes, the change has been merged.

Comment 8 Itamar Heim 2012-08-09 08:00:26 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/