Compilation Errors While Building Samples

58 views
Skip to first unread message

manees...@gmail.com

unread,
May 15, 2014, 12:14:03 PM5/15/14
to brookly...@googlegroups.com
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 ?

Andrew Kennedy

unread,
May 15, 2014, 12:40:46 PM5/15/14
to d...@brooklyn.incubator.apache.org, brookly...@googlegroups.com
// 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/ ;



--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

manees...@gmail.com

unread,
May 15, 2014, 1:01:00 PM5/15/14
to brookly...@googlegroups.com, d...@brooklyn.incubator.apache.org
I just installed OpenJDK 1.6.0, and am still running into the same issue:

[INFO] Brooklyn Examples Aggregator Project .............. SUCCESS [ 0.594 s]
[INFO] Brooklyn Examples Support Aggregator Project - Webapps SUCCESS [ 0.014 s]
[INFO] hello-world-webapp Maven Webapp ................... SUCCESS [ 1.068 s]
[INFO] hello-world-sql-webapp Maven Webapp ............... SUCCESS [ 0.180 s]
[INFO] Jar Code for Hadoop Webapp ........................ FAILURE [ 0.550 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: 3.135 s
[INFO] Finished at: 2014-05-15T12:59:57-05:00
[INFO] Final Memory: 13M/28M

[root@fit-vm13-148 brooklyn-examples]# which java
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
[root@fit-vm13-148 brooklyn-examples]# java -version
java version "1.6.0_28"
OpenJDK Runtime Environment (IcedTea6 1.13.0pre) (rhel-1.66.1.13.0.el6-x86_64)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

Reply all
Reply to author
Forward
0 new messages