<div dir="ltr"><div><div>Hello ex-colleagues,<br><br>I hope everyone is doing well.<br><br>I wanted to take a peek at the latest RHQ and dev that I am, I thought I would build it from source. I ended up hitting a number of issues and eventually gave up. Here they are in case the dev team wants to look into any of them. I think it would be ideal if people could check out the source from git and simply run &quot;mvn install&quot; to build it. Being able to run it right away without having to setup Postgres would be even better (make H2 or JavaDB the default out of box perhaps?).<br>

<br></div><div>Cheers,<br>Ian<br><br>---<br></div><div><br></div>Here&#39;s the list of stuff I encountered:<br><br>1)<br>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project rest-docs-generator: Compilation failure<br>

[ERROR] /Users/ips/Code/rhq/modules/helpers/rest-docs-generator/src/main/java/org/rhq/helpers/rest_docs_generator/ClassLevelProcessor.java:[61,37] cannot find symbol<br>[ERROR] symbol  : variable RELEASE_7<br>[ERROR] location: class javax.lang.model.SourceVersion<br>

<br>Solution: Set JAVA_HOME environment var to JDK7 install dir. Note: The build aborts when the above error occurs, so there may be other JDK7 deps further along.<br><br>2)<br>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (test-db-schema-version) on project rhq-core-dbutils: An Ant BuildException has occured: The following error occurred while executing this line:<br>

[ERROR] /Users/ips/Code/rhq/modules/core/dbutils/src/main/scripts/dbsetup-build.xml:339: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.<br>

[ERROR] around Ant part ...&lt;ant antfile=&quot;/Users/ips/Code/rhq/modules/core/dbutils/src/main/scripts/dbsetup-build.xml&quot; target=&quot;dbsetup-check-schema&quot;&gt;... @ 14:124 in /Users/ips/Code/rhq/modules/core/dbutils/target/antrun/build-main.xml<br>

<br>Solution: Pass -Ddbsetup-do-not-check-schema option to mvn.<br><br>3) <br>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project rhq-enterprise-server-xml-schemas: Compilation failure<br>

[ERROR] Failure executing javac, but could not parse the error:<br>[ERROR]<br>[ERROR]<br>[ERROR] The system is out of resources.<br>[ERROR] Consult the following stack trace for details.<br>[ERROR] java.lang.OutOfMemoryError: PermGen space<br>

[ERROR] at com.sun.tools.javac.main.JavaCompiler.&lt;init&gt;(JavaCompiler.java:355)<br>[ERROR] at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:88)<br>[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:424)<br>

[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:353)<br>[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:342)<br>[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:333)<br>[ERROR] at com.sun.tools.javac.Main.compile(Main.java:94)<br>

[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>

[ERROR] at java.lang.reflect.Method.invoke(Method.java:601)<br>[ERROR] at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:554)<br>[ERROR] at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:161)<br>

[ERROR] at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:605)<br>[ERROR] at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)<br>[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)<br>

[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)<br>[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)<br>[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)<br>

[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)<br>[ERROR] at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)<br>

[ERROR] at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:163)<br>[ERROR] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)<br>[ERROR] at java.util.concurrent.FutureTask.run(FutureTask.java:166)<br>

[ERROR] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)<br>[ERROR] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)<br>[ERROR] at java.util.concurrent.FutureTask.run(FutureTask.java:166)<br>

[ERROR] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)<br>[ERROR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)<br>[ERROR] at java.lang.Thread.run(Thread.java:722)<br>

<br>Solution: <br>Interesting Side Note: Permgen will no longer exist in Java 8 (<a href="http://javaeesupportpatterns.blogspot.com/2011/10/java-7-features-permgen-removal.html">http://javaeesupportpatterns.blogspot.com/2011/10/java-7-features-permgen-removal.html</a>)<br>

<br>4)<br>[ERROR] Failed to execute goal org.bsc.maven:maven-processor-plugin:2.0.6-redhat:process-test (create-rest-api-report) on project rest-docs-generator: Error executing: error during compilation -&gt; [Help 1]<br>

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.bsc.maven:maven-processor-plugin:2.0.6-redhat:process-test (create-rest-api-report) on project rest-docs-generator: Error executing<br>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)<br>

    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)<br>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)<br>    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)<br>

    at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)<br>    at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:163)<br>

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)<br>    at java.util.concurrent.FutureTask.run(FutureTask.java:138)<br>    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)<br>

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)<br>    at java.util.concurrent.FutureTask.run(FutureTask.java:138)<br>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>    at java.lang.Thread.run(Thread.java:680)<br>Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing<br>    at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:223)<br>

    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)<br>    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)<br>    ... 13 more<br>Caused by: java.lang.Exception: error during compilation<br>

    at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.executeWithExceptionsHandled(AbstractAnnotationProcessorMojo.java:384)<br>    at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:216)<br>

    ... 15 more<br><br>Solution: Stop passing &quot;--threads 1C&quot; option from mvn (see <a href="http://code.google.com/p/maven-annotation-plugin/issues/detail?id=32">http://code.google.com/p/maven-annotation-plugin/issues/detail?id=32</a>)<br>

<br>5)<br>[INFO] Compiling module org.rhq.enterprise.gui.coregui.CoreGUI<br>[INFO]    [ERROR] An internal compiler exception occurred<br>[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:109)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JFieldRef.traverse(JFieldRef.java:111)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JMethodCall.visitChildren(JMethodCall.java:248)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:241)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:88)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:331)<br>[INFO]  at com.google.gwt.dev.jjs.ast.js.JMultiExpression.traverse(JMultiExpression.java:60)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)<br>

[INFO]  at com.google.gwt.dev.jjs.impl.MethodInliner$InliningVisitor.tryInlineExpression(MethodInliner.java:381)<br>[INFO]  at com.google.gwt.dev.jjs.impl.MethodInliner$InliningVisitor.endVisit(MethodInliner.java:122)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:81)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:41)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:426)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JConstructor.traverse(JConstructor.java:124)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:98)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:287)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1032)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)<br>

[INFO]  at com.google.gwt.dev.jjs.impl.MethodInliner.execImpl(MethodInliner.java:521)<br>[INFO]  at com.google.gwt.dev.jjs.impl.MethodInliner.exec(MethodInliner.java:504)<br>[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.optimizeLoop(JavaToJavaScriptCompiler.java:870)<br>

[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.optimize(JavaToJavaScriptCompiler.java:762)<br>[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:698)<br>[INFO]  at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)<br>

[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)<br>[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)<br>[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)<br>

[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:232)<br>[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:198)<br>[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)<br>[INFO]  at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)<br>

[INFO]  at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)<br>[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:177)<br>[INFO] Caused by: java.lang.AssertionError<br>[INFO]  at com.google.gwt.dev.jjs.ast.JNonNullType.&lt;init&gt;(JNonNullType.java:28)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JReferenceType.getNonNull(JReferenceType.java:58)<br>[INFO]  at com.google.gwt.dev.jjs.impl.MethodInliner.merge(MethodInliner.java:559)<br>[INFO]  at com.google.gwt.dev.jjs.impl.MethodInliner.maybeCast(MethodInliner.java:543)<br>

[INFO]  at com.google.gwt.dev.jjs.impl.MethodInliner.access$300(MethodInliner.java:57)<br>[INFO]  at com.google.gwt.dev.jjs.impl.MethodInliner$ParameterReplacer.endVisit(MethodInliner.java:468)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JParameterRef.traverse(JParameterRef.java:47)<br>

[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)<br>[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)<br>[INFO]  ... 66 more<br>[INFO]       [ERROR] at GroupOperationHistory.java(120): this$static<br>

[INFO]          com.google.gwt.dev.jjs.ast.JParameterRef<br>[INFO]       [ERROR] at GroupOperationHistory.java(120): this$static.resourceOperationHistories<br>[INFO]          com.google.gwt.dev.jjs.ast.JFieldRef<br>[INFO]       [ERROR] at GroupOperationHistory.java(120): this$static.resourceOperationHistories.add(history)<br>

[INFO]          com.google.gwt.dev.jjs.ast.JMethodCall<br>[INFO]       [ERROR] at GroupOperationHistory.java(119): (this$static.resourceOperationHistories.add(history))<br>[INFO]          com.google.gwt.dev.jjs.ast.js.JMultiExpression<br>

[INFO]       [ERROR] at ResourceOperationHistory.java(168): GroupOperationHistory.$addResourceOperationHistory(groupHistory, this)<br>[INFO]          com.google.gwt.dev.jjs.ast.JMethodCall<br>[INFO]       [ERROR] at ResourceOperationHistory.java(167): this.groupOperationHistory != null &amp;&amp; GroupOperationHistory.$addResourceOperationHistory(groupHistory, this)<br>

[INFO]          com.google.gwt.dev.jjs.ast.JBinaryOperation<br>[INFO]       [ERROR] at ResourceOperationHistory.java(167): this.groupOperationHistory != null &amp;&amp; GroupOperationHistory.$addResourceOperationHistory(groupHistory, this)<br>

[INFO]          com.google.gwt.dev.jjs.ast.JExpressionStatement<br>[INFO]       [ERROR] at ResourceOperationHistory.java(129): {<br>[INFO]   super(jobName, jobGroup, subjectName, operationDefinition, parameters);<br>[INFO]   this.resource = resource;<br>

[INFO]   this.groupOperationHistory = groupHistory;<br>[INFO]   this.groupOperationHistory != null &amp;&amp; GroupOperationHistory.$addResourceOperationHistory(groupHistory, this);<br>[INFO] }<br>[INFO]          com.google.gwt.dev.jjs.ast.JBlock<br>

[INFO]       [ERROR] at ResourceOperationHistory.java(129): {<br>[INFO]   super(jobName, jobGroup, subjectName, operationDefinition, parameters);<br>[INFO]   this.resource = resource;<br>[INFO]   this.groupOperationHistory = groupHistory;<br>

[INFO]   this.groupOperationHistory != null &amp;&amp; GroupOperationHistory.$addResourceOperationHistory(groupHistory, this);<br>[INFO] }<br>[INFO]          com.google.gwt.dev.jjs.ast.JMethodBody<br>[INFO]       [ERROR] at ResourceOperationHistory.java(129): public ResourceOperationHistory(null jobName, null jobGroup, String subjectName, OperationDefinition operationDefinition, Configuration parameters, Resource resource, null groupHistory);<br>

[INFO]<br>[INFO]          com.google.gwt.dev.jjs.ast.JConstructor<br>[INFO]       [ERROR] at ResourceOperationHistory.java(98): final class ResourceOperationHistory extends OperationHistory<br>[INFO]          com.google.gwt.dev.jjs.ast.JClassType<br>

[INFO]       [ERROR] at Unknown(0): &lt;JProgram&gt;<br>[INFO]          com.google.gwt.dev.jjs.ast.JProgram<br><br>At this point, I gave up. Perhaps <a href="http://code.google.com/p/google-web-toolkit/issues/detail?id=6508">http://code.google.com/p/google-web-toolkit/issues/detail?id=6508</a> is related.<br>

<br><br></div></div>