Bug 1038042

Summary: Unable to start portal with jdk1.6
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: vramik
Component: PortalAssignee: Peter Palaga <ppalaga>
Status: VERIFIED --- QA Contact: Tomas Kyjovsky <tkyjovsk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.1CC: epp-bugs, theute, tkyjovsk
Target Milestone: ER01   
Target Release: 6.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1185260 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1185260    
Attachments:
Description Flags
log
none
server.log of 6.2.0.ER7 with Oracle JDK 1.6, RHEL5 none

Description vramik 2013-12-04 10:18:01 UTC
Description of problem:
It's not possible start portal with jdk1.6. There are exceptions in log. See attached stacktrace.

Version-Release number of selected component (if applicable):
JPP6.1.1.DR1

Comment 1 vramik 2013-12-04 10:19:30 UTC
Created attachment 832536 [details]
log

Comment 3 Peter Palaga 2013-12-11 17:23:34 UTC
As of JP 6.1.1.DR1, the PBR is fixed, but there is at least one more lib with Unsupported major.minor version 51.0.

[0m[33m18:02:22,067 WARN  [org.jboss.modules] (MSC service thread 1-4) Failed to define class org.jgroups.ChannelFactory in Module "org.jgroups:gatein" from local module loader @2d1e233 (finder: local module finder @215983b7 (roots: /home/ppalaga/scratch/gatein-portal-3.6.x-prod/wildFly/modules,/home/ppalaga/scratch/gatein-portal-3.6.x-prod/wildFly/modules/system/layers/gatein,/home/ppalaga/scratch/gatein-portal-3.6.x-prod/wildFly/modules/system/layers/base)): java.lang.UnsupportedClassVersionError: org/jgroups/ChannelFactory : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_35]
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [rt.jar:1.6.0_35]
...

Comment 5 hfnukal@redhat.com 2013-12-12 11:51:01 UTC
This is fixed by putting jgroups jar compiled by JDK 1.6
Try get jgroups from http://download.devel.redhat.com/brewroot/repos/jb-jpp-6-build/latest/maven/jgroups/jgroups/2.6.22.Final/jgroups-2.6.22.Final.jar

Comment 6 Peter Palaga 2013-12-17 13:25:10 UTC
With jgroups-2.6.22.Final.jar manually replaced with the one refered to by Honza, the portal compiled from 3.6.x branch can be run on Java 6. I tried that to ensure that there are other incompatible libraries.

In JBoss Portal 6.1.1.ER1 produced by Honza, a proper jgroups-2.6.22.Final-redhat-x.jar should be included which should work out of the box.

Comment 7 Tomas Kyjovsky 2014-02-20 11:26:52 UTC
All tests for JVM compatibility for 6.1.1.CR1 PASSED. 

https://tcms.engineering.redhat.com/run/114753/

I did a quick manual test with OpenJDK 1.6.0_27-b27 and the server started ok.

Comment 8 Tomas Kyjovsky 2015-01-22 22:27:52 UTC
I'm reopening this issue for 6.2.0.ER7.

java.lang.UnsupportedClassVersionError: org/jgroups/ChannelFactory : Unsupported major.minor version 51.0

Comment 9 Tomas Kyjovsky 2015-01-22 22:29:49 UTC
Created attachment 983096 [details]
server.log of 6.2.0.ER7 with Oracle JDK 1.6, RHEL5

Comment 10 Peter Palaga 2015-01-23 07:42:46 UTC
Tomáš, please do not hijack bugs from old & released versions. It simply does not mirror the real state of affairs like this. This bug has been fixed in 6.1.1 and it will stay fixed there forever unless, someone is able to reproduce it on 6.1.1. Being able to reproduce on 6.2 is a distinct issue with differing steps to reproduce. Cloning is the right instrument for situations like this. Please clone this bug (you may want to add 6.2 to the subject of the clone) and please revert all you have changed here.