Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1CB9910D7F for ; Tue, 27 May 2014 11:45:35 +0000 (UTC) Received: (qmail 77792 invoked by uid 500); 27 May 2014 11:45:35 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 77764 invoked by uid 500); 27 May 2014 11:45:35 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 77756 invoked by uid 99); 27 May 2014 11:45:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 11:45:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of martin.harris@cloudsoftcorp.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-ig0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 11:45:31 +0000 Received: by mail-ig0-f175.google.com with SMTP id uq10so929261igb.2 for ; Tue, 27 May 2014 04:45:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudsoftcorp.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ed5lZrxLijnYKZMUVGiHWmA07B5Bu9df4WqtMJtnz30=; b=UoMzJSbEyeVfBbK2nIMB1a5TLXbEe6VAEiHV+zImToWrpw8f/J8zX0I7551+UlcA94 pKQEJqOQCEq+AbJa9j0DJI2g230pBkOQ1HzhOMTChzonSHAk6tu60SQnnLvRSRbJJTTY jWkmLgxozAyUXH/WUx5OTo593ofn7IazRje3I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ed5lZrxLijnYKZMUVGiHWmA07B5Bu9df4WqtMJtnz30=; b=VQRuiNHVLoFyyWXinWNDNfUzq7WCP7SIOXUoy2AGlrfikTauLadABml/fVu+qldzaZ jXdkKekDIrDhM34P8o6sJGfAxdiAE6FqwaGZQPtYVT7FyIGAdCxSDFNP+LGQC5VncQSf xXJLgM1/IjYcjJmLcQb6aPkg+yCfWQ/NiwedHElGjo5TRS5ttxjrnVC/uyJCkpJd1Rad F1yBpYlXvlRajx8y0Q+m0YAiT5CG1DwZGyZ3pSuZyn9iTsYs0WEQHz9MDDO/z10QGcxK TXB0SoSd+032JvIEWdQwn5nSpVd77yOq++bxzjYkzToyYtSVUC/R7kiSSLtrN362li/G 2p6w== X-Gm-Message-State: ALoCoQlqPtvGzEGQvSQHDEjgM+WGAud72LC3kHv1Db9Vqa3kD21fVKivwXxGoef/W6prsoXsQ7h3 MIME-Version: 1.0 X-Received: by 10.50.43.164 with SMTP id x4mr33158055igl.36.1401191110351; Tue, 27 May 2014 04:45:10 -0700 (PDT) Received: by 10.51.17.75 with HTTP; Tue, 27 May 2014 04:45:10 -0700 (PDT) In-Reply-To: References: <6956f991-60fe-4cda-abd5-c35a2f018600@googlegroups.com> Date: Tue, 27 May 2014 12:45:10 +0100 Message-ID: Subject: Re: [brooklyn-users] Compilation Errors While Building Samples From: Martin Harris To: dev@brooklyn.incubator.apache.org Cc: brooklyn-users@googlegroups.com Content-Type: multipart/alternative; boundary=089e01184b1065341304fa603a24 X-Virus-Checked: Checked by ClamAV on apache.org --089e01184b1065341304fa603a24 Content-Type: text/plain; charset=UTF-8 Hi, Sorry for the late reply, I'd missed the posting to the (now deprecated) google groups list. I've tested the build on a RHEL 6.5 VM in SoftLayer running OpenJDK 1.6.0 as described in this gist [1], and have been unable to reproduce the error. In your other email, you said that you had installed OpenJDK 1.6.0, but the stack trace you posted still includes references to the J9VM - is it possible for you to uninstall J9? I don't have a J9 installer, so I'm unable to test side-by-side installation of OpenJDK and J9 Cheers Martin Harris Lead Software Engineer Cloudsoft Corporation Ltd www.cloudsoftcorp.com [1] https://gist.github.com/Nakomis/74d5e9d17dc82b0a590c On 15 May 2014 17:40, Andrew Kennedy wrote: > // Note changed to apache dev list > > It looks like this is an issue with the IBM J9 runtime and the Maven groovy > plugin. have you tried using OpenJDK 1.6.x instead, as we don't officially > support J9. > > Andrew. > > -- > -- andrew kennedy ? engineer : http://cloudsoftcorp.com/developers/ ; > > > On 15 May 2014 17:14, wrote: > > > Hi All: > > > > I tried building the samples and ran into the following error: > > > > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ > > brooklyn-example-hello-world-hadoop-jar --- > > [INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy > files > > [INFO] Found location > > > > > for className > > [INFO] no javaAgentClass seems to be set > > [INFO] Compiling in a forked process using > > > /root/.m2/repository/org/codehaus/groovy/groovy-eclipse-batch/1.8.6-01/groovy-eclipse-batch-1.8.6-01.jar > > [INFO] ------------------------------------------------------------- > > [ERROR] COMPILATION ERROR : > > [INFO] ------------------------------------------------------------- > > [ERROR] Failure executing groovy-eclipse compiler: > > Exception in thread "main" java.lang.NoClassDefFoundError: > > > org.eclipse.core.runtime.content.IContentTypeManager$IContentTypeChangeListener > > at java.lang.ClassLoader.defineClass(ClassLoader.java:275) > > at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:540) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:451) > > at java.net.URLClassLoader.access$300(URLClassLoader.java:79) > > at > > java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1038) > > at > > java.security.AccessController.doPrivileged(AccessController.java:310) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:429) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:660) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:626) > > at java.lang.J9VMInternals.verifyImpl(Native Method) > > at java.lang.J9VMInternals.verify(J9VMInternals.java:72) > > at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) > > at > > > org.codehaus.jdt.groovy.integration.LanguageSupportFactory.tryInstantiate(LanguageSupportFactory.java:129) > > at > > > org.codehaus.jdt.groovy.integration.LanguageSupportFactory.getLanguageSupport(LanguageSupportFactory.java:114) > > at > > > org.codehaus.jdt.groovy.integration.LanguageSupportFactory.getParser(LanguageSupportFactory.java:48) > > at > > > org.eclipse.jdt.internal.compiler.Compiler.initializeParser(Compiler.java:741) > > at > > org.eclipse.jdt.internal.compiler.Compiler.(Compiler.java:295) > > at > > > org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:3752) > > at > > org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1679) > > at > > org.eclipse.jdt.internal.compiler.batch.Main.main(Main.java:1392) > > Caused by: java.lang.ClassNotFoundException: > > > org.eclipse.core.runtime.content.IContentTypeManager$IContentTypeChangeListener > > at java.net.URLClassLoader.findClass(URLClassLoader.java:434) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:660) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:626) > > at java.lang.ClassLoader.defineClassImpl(Native Method) > > ... 22 more > > > > [INFO] 1 error > > [INFO] ------------------------------------------------------------- > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Reactor Summary: > > [INFO] > > [INFO] Brooklyn Examples Aggregator Project .............. SUCCESS [ > > 0.565 s] > > [INFO] Brooklyn Examples Support Aggregator Project - Webapps SUCCESS [ > > 0.015 s] > > [INFO] hello-world-webapp Maven Webapp ................... SUCCESS [ > > 2.212 s] > > [INFO] hello-world-sql-webapp Maven Webapp ............... SUCCESS [ > > 0.173 s] > > [INFO] Jar Code for Hadoop Webapp ........................ FAILURE [ > > 0.541 s] > > [INFO] hello-world-hadoop-webapp Maven Webapp ............ SKIPPED > > [INFO] Brooklyn Simple Web Cluster Example ............... SKIPPED > > [INFO] Brooklyn Global Web Fabric Example ................ SKIPPED > > [INFO] Brooklyn Hadoop and Whirr Example ................. SKIPPED > > [INFO] Brooklyn Simple Messaging Publish-Subscribe Example SKIPPED > > [INFO] Brooklyn NoSQL Cluster Examples ................... SKIPPED > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] BUILD FAILURE > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 4.234 s > > [INFO] Finished at: 2014-05-15T12:06:02-05:00 > > [INFO] Final Memory: 13M/38M > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile > > (default-compile) on project brooklyn-example-hello-world-hadoop-jar: > > Compilation failure > > [ERROR] Failure executing groovy-eclipse compiler: > > [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: > > > org.eclipse.core.runtime.content.IContentTypeManager$IContentTypeChangeListener > > [ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:275) > > [ERROR] at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74) > > [ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:540) > > [ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:451) > > [ERROR] at java.net.URLClassLoader.access$300(URLClassLoader.java:79) > > [ERROR] at > > java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1038) > > [ERROR] at > > java.security.AccessController.doPrivileged(AccessController.java:310) > > [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:429) > > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:660) > > [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358) > > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:626) > > [ERROR] at java.lang.J9VMInternals.verifyImpl(Native Method) > > [ERROR] at java.lang.J9VMInternals.verify(J9VMInternals.java:72) > > [ERROR] at java.lang.J9VMInternals.initialize(J9VMInternals.java:134) > > [ERROR] at > > > org.codehaus.jdt.groovy.integration.LanguageSupportFactory.tryInstantiate(LanguageSupportFactory.java:129) > > [ERROR] at > > > org.codehaus.jdt.groovy.integration.LanguageSupportFactory.getLanguageSupport(LanguageSupportFactory.java:114) > > [ERROR] at > > > org.codehaus.jdt.groovy.integration.LanguageSupportFactory.getParser(LanguageSupportFactory.java:48) > > [ERROR] at > > > org.eclipse.jdt.internal.compiler.Compiler.initializeParser(Compiler.java:741) > > [ERROR] at > > org.eclipse.jdt.internal.compiler.Compiler.(Compiler.java:295) > > [ERROR] at > > > org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:3752) > > [ERROR] at > > org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1679) > > [ERROR] at > > org.eclipse.jdt.internal.compiler.batch.Main.main(Main.java:1392) > > [ERROR] Caused by: java.lang.ClassNotFoundException: > > > org.eclipse.core.runtime.content.IContentTypeManager$IContentTypeChangeListener > > [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:434) > > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:660) > > [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358) > > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:626) > > [ERROR] at java.lang.ClassLoader.defineClassImpl(Native Method) > > [ERROR] ... 22 more > > [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 -rf :brooklyn-example-hello-world-hadoop-jar > > > > Could someone please indicate what is going on and why its failing like > > this ? > > > > -- > > You received this message because you are subscribed to the Google Groups > > "brooklyn-users" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to brooklyn-users+unsubscribe@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > > -- Martin Harris Lead Software Engineer Cloudsoft Corporation Ltd www.cloudsoftcorp.com Mobile: +44 (0)7989 047-855 --089e01184b1065341304fa603a24--