brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Harris <martin.har...@cloudsoftcorp.com>
Subject Re: [brooklyn-users] Compilation Errors While Building Samples
Date Tue, 27 May 2014 11:45:10 GMT
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 <andrew.kennedy@cloudsoftcorp.com>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, <maneeshmehra@gmail.com> 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
> >
> </root/.m2/repository/org/codehaus/groovy/groovy-eclipse-batch/1.8.6-01/groovy-eclipse-batch-1.8.6-01.jar>
> > for className <org.eclipse.jdt.internal.compiler.batch.Main>
> > [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.<init>(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.<init>(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 <goals> -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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message