Bug 831820 - Torquebox compilation fails with JDK 7
Summary: Torquebox compilation fails with JDK 7
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise WFK Platform 2
Classification: Retired
Component: TorqueBox
Version: 2.0.0.ER8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: CR1
: 2.1.0
Assignee: Ben Browning
QA Contact: Oliver Kišš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-13 19:55 UTC by Oliver Kišš
Modified: 2015-08-02 23:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
When compiling TorqueBox from sources using JDK 7, you should update maven-compiler-plugin version in torquebox-parent pom is changed from 2.0.2 to 2.5.1, then the compilation is successful.
Clone Of:
Environment:
Last Closed: 2012-11-30 15:34:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Oliver Kišš 2012-06-13 19:55:58 UTC
Description of problem:

Torquebox compilation fails with JDK 7.

Extract from the maven output:
19:54:38  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project torquebox-core: Compilation failure: Compilation failure:
19:54:38  [ERROR] could not parse error message: warning: [options] bootstrap class path not set in conjunction with -source 1.6
19:54:38  [ERROR] /mnt/hudson_workspace/workspace/wfk-2.0-torquebox/85a40f63/wfk-torquebox-ci/jboss-wfk-2.0.0.ER7/src/torquebox-2.0.3.redhat.1/modules/core/src/main/java/org/torquebox/core/datasource/processors/DatabaseProcessor.java:32: warning: [deprecation] ConnectorServices in org.jboss.as.connector has been deprecated
19:54:38  [ERROR] import org.jboss.as.connector.ConnectorServices;
19:54:38  [ERROR] ^
19:54:38  [ERROR] 
19:54:38  [ERROR] /mnt/hudson_workspace/workspace/wfk-2.0-torquebox/85a40f63/wfk-torquebox-ci/jboss-wfk-2.0.0.ER7/src/torquebox-2.0.3.redhat.1/modules/core/src/main/java/org/torquebox/core/datasource/processors/DatabaseProcessor.java:[32,29] [deprecation] ConnectorServices in org.jboss.as.connector has been deprecated
19:54:38  [ERROR] 



When maven-compiler-plugin version in torquebox-parent pom is changed from 2.0.2 to 2.5.1, compilation is successful.

Comment 1 Karel Piwko 2012-06-20 15:07:26 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When compiling TorqueBox from sources using JDK 7, you should update maven-compiler-plugin version in torquebox-parent pom is changed from 2.0.2 to 2.5.1, than the compilation is successful.

Comment 3 Ben Browning 2012-08-27 15:41:34 UTC
Updated to maven-compiler-plugin 2.5.1 in upstream

Comment 4 Marek Novotny 2012-09-25 09:40:13 UTC
Product Mead environment uses version 2.3.2-redhat-1.

I don't understand why you would like to compile TB sources with JDK 7. We have set up only JDK 6 in MEAD.

Comment 5 Karel Piwko 2012-09-25 11:19:20 UTC
Compilation from sources is needed in order to execute integration tests attached to the project.

This is not related to bits in MEAD.

Comment 6 Marek Novotny 2012-09-25 11:27:12 UTC
There is a requirement to build with JDK7 for integration tests?

 I would say that requires to be run on JDK7, but not compiled.

Comment 7 Karel Piwko 2012-09-25 13:21:22 UTC
Nope. You can still build the binaries for end users with jdk6 only. However, it is required to be able to reproduce the process with JDK7 as well.

Comment 8 Marek Novotny 2012-09-25 14:07:30 UTC
OK, but you should use what was built in MEAD environment, not what you build in integration testsuite, that is my point. The integration tests then are not valid for WFK Torquebox IMO.

And what is more important, this issue reports using version 2.0.2, but that is not the version used in WFK torquebox. This bz report seems like running community bits. ;-)

Plugins are managed in jboss-parent and if you need run productized integration testsuite you should use those versions (compiler 2.3.2 or 2.3.2-redhat-1)

I won't change anything in TB for this issue and honestly will reject it if you doesn't explain it more where 2.0.2 version show up in productized torquebox.

Comment 9 Karel Piwko 2012-11-05 14:36:37 UTC
Moved to ON_QA, will be (re)verified in WFK 2.1.0.CR1.

Comment 10 Karel Piwko 2012-11-30 15:34:27 UTC
Distributed as a part of WFK 2.1.0.GA release.


Note You need to log in before you can comment on or make changes to this bug.