Do you have a JAVA_HOME setting that points to a JDK 1.5?

Thanks,
Raymond
________________________________________________________________ 
Raymond Feng
[email protected]
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________

On May 20, 2011, at 1:46 PM, Monosij Dutta-Roy wrote:

> Hello all -
> 
> Thanks in advance for your help.
> 
> I am running on Ubuntu with JDK 1.6.0_20 with no issues in the app I have 
> been working on. I tried cleaning out the .m2 repository and rebuilding as 
> tis machine had an older JDK before and I was getting the same error.
> 
> However I get the following error when trying 'mvn package' on an AIX machine 
> running the following JVM.
> ---------------------------------------------------------------
> [imracif [stm] @ cchit_aix] /home/imracif/qm.01 <> java -version
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build pap6460sr9fp1-20110208_03(SR9 FP1))
> IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 
> jvmap6460sr9-20110203_74623 (JIT enabled, AOT enabled)
> J9VM - 20110203_074623
> JIT  - r9_20101028_17488ifx3
> GC   - 20101027_AA)
> JCL  - 20110203_01
> ---------------------------------------------------------------
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
> qmController ---
> [WARNING] File encoding has not been set, using platform encoding ISO8859-1, 
> i.e. build is platform dependent!
> [INFO] Compiling 8 source files to 
> /home/imracif/qm.01/qmController/target/classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] 
> /home/imracif/qm.01/qmController/src/main/java/org/rd/qm/impl/QueryComposerImpl.java:[5,-1]
>  cannot access org.oasisopen.sca.annotation.Service
> bad class file: 
> /home/imracif/.m2/repository/org/apache/tuscany/sca/tuscany-sca-api/2.0-Beta2/tuscany-sca-api-2.0-Beta2.jar(org/oasisopen/sca/annotation/Service.class)
> class file has wrong version 50.0, should be 49.0
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] domainBCA ......................................... SUCCESS [4.865s]
> [INFO] qmController ...................................... FAILURE [0.712s]
> [INFO] qmAppSCA01 ........................................ SKIPPED
> [INFO] qmWebApp.01 ....................................... SKIPPED
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 5.850s
> [INFO] Finished at: Fri May 20 16:18:50 CDT 2011
> [INFO] Final Memory: 6M/16M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 
> (default-compile) on project qmController: Compilation failure
> [ERROR] 
> /home/imracif/qm.01/qmController/src/main/java/org/rd/qm/impl/QueryComposerImpl.java:[5,-1]
>  cannot access org.oasisopen.sca.annotation.Service
> [ERROR] bad class file: 
> /home/imracif/.m2/repository/org/apache/tuscany/sca/tuscany-sca-api/2.0-Beta2/tuscany-sca-api-2.0-Beta2.jar(org/oasisopen/sca/annotation/Service.class)
> [ERROR] class file has wrong version 50.0, should be 49.0
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <goals> -rf :qmController
> 

Reply via email to