Errors trying to build ActiveMQ-5.5.1 from source

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors trying to build ActiveMQ-5.5.1 from source

bbuzzard
Yes I know there are newer versions, but I'm trying to build ActiveMQ-5.5.1 from source using Maven 3.0.5 and jdk1.8.0_11, but I'm running into errors when compiling activemq-core.  Can anyone tell me how to get past these errors.  I'm including a snippet below:

[INFO] Compiling 15 source files to C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-jmdns_1.0\target\classes
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ActiveMQ :: Core 5.5.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ activemq-core ---
[INFO] Deleting file set: C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @ activemq-core ---
[INFO]
[INFO] --- maven-bundle-plugin:2.1.0:cleanVersions (cleanVersions) @ activemq-core ---
[INFO]
[INFO] --- javacc-maven-plugin:2.0:javacc (default) @ activemq-core ---
Java Compiler Compiler Version 3.2 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\grammar\SelectorParser.jj . . .
Note: UNICODE_INPUT option is specified. Please make sure you create the parser/lexer usig a Reader with the correct character encoding.
File "TokenMgrError.java" does not exist.  Will create one.
File "ParseException.java" does not exist.  Will create one.
File "Token.java" does not exist.  Will create one.
File "SimpleCharStream.java" does not exist.  Will create one.
Parser generated successfully.
[INFO]
[INFO] --- activemq-protobuf:1.1:compile (default) @ activemq-core ---
[INFO] Compiling: C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\proto\journal-data.proto
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ activemq-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.4:resources (default-resources) @ activemq-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 54 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ activemq-core ---
[INFO] Compiling 1354 source files to C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ActiveMQ .......................................... SUCCESS [1.538s]
[INFO] ActiveMQ :: KahaDB ................................ SUCCESS [2.926s]
[INFO] ActiveMQ :: JAAS .................................. SUCCESS [2.614s]
[INFO] Openwire Generator ................................ SUCCESS [2.296s]
[INFO] ActiveMQ :: jmdns 1.0 ............................. SUCCESS [1.942s]
[INFO] ActiveMQ :: Core .................................. FAILURE [14.050s]
[INFO] ActiveMQ :: RA .................................... SKIPPED
[INFO] ActiveMQ :: Pool .................................. SKIPPED
[INFO] ActiveMQ :: Camel ................................. SKIPPED
[INFO] ActiveMQ :: Console ............................... SKIPPED
[INFO] ActiveMQ :: Optional .............................. SKIPPED
[INFO] ActiveMQ :: Jar Bundle ............................ SKIPPED
[INFO] ActiveMQ :: File Server ........................... SKIPPED
[INFO] ActiveMQ :: Blueprint ............................. SKIPPED
[INFO] ActiveMQ :: Apache Karaf .......................... SKIPPED
[INFO] ActiveMQ :: RAR ................................... SKIPPED
[INFO] ActiveMQ :: Run Jar ............................... SKIPPED
[INFO] ActiveMQ :: Spring ................................ SKIPPED
[INFO] ActiveMQ Tooling .................................. SKIPPED
[INFO] ActiveMQ :: Memory Usage Test Plugin .............. SKIPPED
[INFO] ActiveMQ :: Performance Test Plugin ............... SKIPPED
[INFO] ActiveMQ :: StartUp Plugin ........................ SKIPPED
[INFO] ActiveMQ :: Web ................................... SKIPPED
[INFO] ActiveMQ :: Web Demo .............................. SKIPPED
[INFO] ActiveMQ :: XMPP .................................. SKIPPED
[INFO] ActiveMQ :: Web Console ........................... SKIPPED
[INFO] ActiveMQ :: Assembly .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.992s
[INFO] Finished at: Fri Jun 12 10:18:14 CDT 2015
[INFO] Final Memory: 47M/273M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project activemq-core: Compilation failure: Compilation failure:
[ERROR] could not parse error message: warning: [options] bootstrap class path not set in conjunction with -source 1.6
[ERROR] C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:60: error: name has private access in Usage
[ERROR] name = parent.name + ":" + name;
[ERROR] ^
[ERROR]
[ERROR] C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:[294,22] error: addChild(T) has private access in Usage
[ERROR]
[ERROR] could not parse error message:   where T is a type-variable:
[ERROR] T extends Usage declared in class Usage
[ERROR] C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:306: error: removeChild(T) has private access in Usage
[ERROR] parent.removeChild(this);
[ERROR] ^
[ERROR]
[ERROR] could not parse error message:   where T is a type-variable:
[ERROR] T extends Usage declared in class Usage
[ERROR] C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:85: error: name clash: containsKey(K) in MapContainer and containsKey(Object) in Map h
ave the same erasure, yet neither overrides the other
[ERROR] boolean containsKey(K key);
[ERROR] ^
[ERROR]
[ERROR] could not parse error message:   where K is a type-variable:
[ERROR] K extends Object declared in interface MapContainer
[ERROR] C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:93: error: name clash: get(K) in MapContainer and get(Object) in Map have the same era
sure, yet neither overrides the other
[ERROR] V get(K key);
[ERROR] ^
[ERROR]
[ERROR] could not parse error message:   where K,V#1,V#2 are type-variables:
[ERROR] K extends Object declared in interface MapContainer
[ERROR] V#1 extends Object declared in interface MapContainer
[ERROR] V#2 extends Object declared in interface Map
[ERROR] C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:99: error: name clash: containsValue(K) in MapContainer and containsValue(Object) in M
ap have the same erasure, yet neither overrides the other
[ERROR] boolean containsValue(K o);
[ERROR] ^
[ERROR]
[ERROR] could not parse error message:   where K is a type-variable:
[ERROR] K extends Object declared in interface MapContainer
[ERROR] C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:106: error: name clash: putAll(Map<K#1,V#1>) in MapContainer and putAll(Map<? extends
K#2,? extends V#2>) in Map have the same erasure, yet neither overrides the other
[ERROR] void putAll(Map<K, V> map);
[ERROR] ^
[ERROR]
[ERROR] could not parse error message:   where K#1,V#1,K#2,V#2 are type-variables:
[ERROR] K#1 extends Object declared in interface MapContainer
[ERROR] V#1 extends Object declared in interface MapContainer
[ERROR] K#2 extends Object declared in interface Map
[ERROR] V#2 extends Object declared in interface Map
[ERROR] C:\Users\Billy.Buzzard.US\workspace apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:140: error: name clash: remove(K) in MapContainer and remove(Object) in Map have the s
ame erasure, yet neither overrides the other
[ERROR] V remove(K key);
[ERROR] ^
[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 :activemq-core
'cmd' is not recognized as an internal or external command,
operable program or batch file.
Reply | Threaded
Open this post in threaded view
|

Re: Errors trying to build ActiveMQ-5.5.1 from source

christopher.l.shannon
You can't use JDK 8 to build a version that old, try using JDK 6.  JDK 7
support was added in ActiveMQ 5.7.0 and JDK 8 support was added in ActiveMQ
5.10.0

On Fri, Jun 12, 2015 at 11:54 AM, bbuzzard <[hidden email]>
wrote:

> Yes I know there are newer versions, but I'm trying to build ActiveMQ-5.5.1
> from source using Maven 3.0.5 and jdk1.8.0_11, but I'm running into errors
> when compiling activemq-core.  Can anyone tell me how to get past these
> errors.  I'm including a snippet below:
>
> [INFO] Compiling 15 source files to C:\Users\Billy.Buzzard.US\workspace
> apache-camel\activemq-parent\activemq-jmdns_1.0\target\classes
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building ActiveMQ :: Core 5.5.1
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ activemq-core ---
> [INFO] Deleting file set: C:\Users\Billy.Buzzard.US\workspace
> apache-camel\activemq-parent\activemq-core\target (included: [**],
> excluded:
> [])
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @
> activemq-core ---
> [INFO]
> [INFO] --- maven-bundle-plugin:2.1.0:cleanVersions (cleanVersions) @
> activemq-core ---
> [INFO]
> [INFO] --- javacc-maven-plugin:2.0:javacc (default) @ activemq-core ---
> Java Compiler Compiler Version 3.2 (Parser Generator)
> (type "javacc" with no arguments for help)
> Reading from file C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\grammar\SelectorParser.jj
> . . .
> Note: UNICODE_INPUT option is specified. Please make sure you create the
> parser/lexer usig a Reader with the correct character encoding.
> File "TokenMgrError.java" does not exist.  Will create one.
> File "ParseException.java" does not exist.  Will create one.
> File "Token.java" does not exist.  Will create one.
> File "SimpleCharStream.java" does not exist.  Will create one.
> Parser generated successfully.
> [INFO]
> [INFO] --- activemq-protobuf:1.1:compile (default) @ activemq-core ---
> [INFO] Compiling: C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\proto\journal-data.proto
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.1:process (default) @
> activemq-core ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4:resources (default-resources) @
> activemq-core ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 54 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @
> activemq-core ---
> [INFO] Compiling 1354 source files to C:\Users\Billy.Buzzard.US\workspace
> apache-camel\activemq-parent\activemq-core\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] ActiveMQ .......................................... SUCCESS [1.538s]
> [INFO] ActiveMQ :: KahaDB ................................ SUCCESS [2.926s]
> [INFO] ActiveMQ :: JAAS .................................. SUCCESS [2.614s]
> [INFO] Openwire Generator ................................ SUCCESS [2.296s]
> [INFO] ActiveMQ :: jmdns 1.0 ............................. SUCCESS [1.942s]
> [INFO] ActiveMQ :: Core .................................. FAILURE
> [14.050s]
> [INFO] ActiveMQ :: RA .................................... SKIPPED
> [INFO] ActiveMQ :: Pool .................................. SKIPPED
> [INFO] ActiveMQ :: Camel ................................. SKIPPED
> [INFO] ActiveMQ :: Console ............................... SKIPPED
> [INFO] ActiveMQ :: Optional .............................. SKIPPED
> [INFO] ActiveMQ :: Jar Bundle ............................ SKIPPED
> [INFO] ActiveMQ :: File Server ........................... SKIPPED
> [INFO] ActiveMQ :: Blueprint ............................. SKIPPED
> [INFO] ActiveMQ :: Apache Karaf .......................... SKIPPED
> [INFO] ActiveMQ :: RAR ................................... SKIPPED
> [INFO] ActiveMQ :: Run Jar ............................... SKIPPED
> [INFO] ActiveMQ :: Spring ................................ SKIPPED
> [INFO] ActiveMQ Tooling .................................. SKIPPED
> [INFO] ActiveMQ :: Memory Usage Test Plugin .............. SKIPPED
> [INFO] ActiveMQ :: Performance Test Plugin ............... SKIPPED
> [INFO] ActiveMQ :: StartUp Plugin ........................ SKIPPED
> [INFO] ActiveMQ :: Web ................................... SKIPPED
> [INFO] ActiveMQ :: Web Demo .............................. SKIPPED
> [INFO] ActiveMQ :: XMPP .................................. SKIPPED
> [INFO] ActiveMQ :: Web Console ........................... SKIPPED
> [INFO] ActiveMQ :: Assembly .............................. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 26.992s
> [INFO] Finished at: Fri Jun 12 10:18:14 CDT 2015
> [INFO] Final Memory: 47M/273M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project activemq-core: Compilation failure:
> Compilation
> failure:
> [ERROR] could not parse error message: warning: [options] bootstrap class
> path not set in conjunction with -source 1.6
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:60:
> error: name has private access in Usage
> [ERROR] name = parent.name + ":" + name;
> [ERROR] ^
> [ERROR]
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:[294,22]
> error: addChild(T) has private access in Usage
> [ERROR]
> [ERROR] could not parse error message:   where T is a type-variable:
> [ERROR] T extends Usage declared in class Usage
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\usage\Usage.java:306:
> error: removeChild(T) has private access in Usage
> [ERROR] parent.removeChild(this);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where T is a type-variable:
> [ERROR] T extends Usage declared in class Usage
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:85:
> error: name clash: containsKey(K) in MapContainer and containsKey(Object)
> in
> Map h
> ave the same erasure, yet neither overrides the other
> [ERROR] boolean containsKey(K key);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where K is a type-variable:
> [ERROR] K extends Object declared in interface MapContainer
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:93:
> error: name clash: get(K) in MapContainer and get(Object) in Map have the
> same era
> sure, yet neither overrides the other
> [ERROR] V get(K key);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where K,V#1,V#2 are
> type-variables:
> [ERROR] K extends Object declared in interface MapContainer
> [ERROR] V#1 extends Object declared in interface MapContainer
> [ERROR] V#2 extends Object declared in interface Map
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:99:
> error: name clash: containsValue(K) in MapContainer and
> containsValue(Object) in M
> ap have the same erasure, yet neither overrides the other
> [ERROR] boolean containsValue(K o);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where K is a type-variable:
> [ERROR] K extends Object declared in interface MapContainer
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:106:
> error: name clash: putAll(Map<K#1,V#1>) in MapContainer and putAll(Map<?
> extends
> K#2,? extends V#2>) in Map have the same erasure, yet neither overrides the
> other
> [ERROR] void putAll(Map<K, V> map);
> [ERROR] ^
> [ERROR]
> [ERROR] could not parse error message:   where K#1,V#1,K#2,V#2 are
> type-variables:
> [ERROR] K#1 extends Object declared in interface MapContainer
> [ERROR] V#1 extends Object declared in interface MapContainer
> [ERROR] K#2 extends Object declared in interface Map
> [ERROR] V#2 extends Object declared in interface Map
> [ERROR] C:\Users\Billy.Buzzard.US\workspace
>
> apache-camel\activemq-parent\activemq-core\src\main\java\org\apache\activemq\kaha\MapContainer.java:140:
> error: name clash: remove(K) in MapContainer and remove(Object) in Map have
> the s
> ame erasure, yet neither overrides the other
> [ERROR] V remove(K key);
> [ERROR] ^
> [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 :activemq-core
> 'cmd' is not recognized as an internal or external command,
> operable program or batch file.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Errors-trying-to-build-ActiveMQ-5-5-1-from-source-tp4697726.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Errors trying to build ActiveMQ-5.5.1 from source

bbuzzard
I switched to JDK6 and almost everything compiled.  Still having some problem trying to compile activemq-core.  It looks like the "target/generated-sources" code has a common error.  The package is "org.apache.activemq.store.kahadb.data" by the fix message says it needs to be changed to "proto.org.apache.activemq.store.kahadb.data".  What do I need to do to get this activemq-core to compile?
Reply | Threaded
Open this post in threaded view
|

Re: Errors trying to build ActiveMQ-5.5.1 from source

christopher.l.shannon
I'm not entirely sure why it's giving that error, but it could be related
to your version of maven.  Just out of curiosity, why are you trying to
build a version that is so old? Would it be possible to upgrade to a more
modern version of ActiveMQ?

On Tue, Jun 16, 2015 at 2:02 PM, bbuzzard <[hidden email]>
wrote:

> I switched to JDK6 and almost everything compiled.  Still having some
> problem
> trying to compile activemq-core.  It looks like the
> "target/generated-sources" code has a common error.  The package is
> "org.apache.activemq.store.kahadb.data" by the fix message says it needs to
> be changed to "proto.org.apache.activemq.store.kahadb.data".  What do I
> need
> to do to get this activemq-core to compile?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Errors-trying-to-build-ActiveMQ-5-5-1-from-source-tp4697726p4697836.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Errors trying to build ActiveMQ-5.5.1 from source

bbuzzard
I have ActiveMQ-5.5.1 on a production machine and I would like to remotely troubleshoot a specific camel route on it.  I have tried to Build ActiveMQ-5.8.0, but I seem to be running into similar problems.

I am using Eclipse Luna 4.4.2.  Internally Luna is using the EMBEDDED Maven 3.2.1/1.5.2.20150413-2214. Luna is using jdk1.6.0_45.

I connected to https://svn.apache.org/respos/asf and checked out ActiveMQ-5.5.1 as a Maven Project.  The dialog: Import Maven Projects: Setup Maven plugin connectors popped up and showed the following:

activemq-protobuf:1.1:compile (1 errors) Action=Resolve Later
        /activemq-core/pom.xml
javacc-maven-plugin:2.0:javacc (1 errors) Action=Resolve Later
        /activemq-core/pom.xml
javacc-maven-plugin:2.6:javacc (1 errors) Action=Resolve Later
        /activemq-client/pom.xml
maven-bundle-plugin:2.1.0:cleanVersions (24 errors) Action=Resolve Later
        Execution cleanVersions, in /activemq-all/pom.xml
        Execution cleanVersions, in /activemq-blueprint/pom.xml
        Execution cleanVersions, in /activemq-camel/pom.xml
        Execution cleanVersions, in /activemq-console/pom.xml
        Execution cleanVersions, in /activemq-core/pom.xml
        Execution cleanVersions, in /activemq-fileserver/pom.xml
        Execution cleanVersions, in /activemq-jaas/pom.xml
        Execution cleanVersions, in /activemq-jmdns/pom.xml
        Execution cleanVersions, in /activemq-karaf/pom.xml
        Execution cleanVersions, in /activemq-openwire-generator/pom.xml
        Execution cleanVersions, in /activemq-optional/pom.xml
        Execution cleanVersions, in /activemq-pool/pom.xml
        Execution cleanVersions, in /activemq-ra/pom.xml
        Execution cleanVersions, in /activemq-rar/pom.xml
        Execution cleanVersions, in /activemq-run/pom.xml
        Execution cleanVersions, in /activemq-spring/pom.xml
        Execution cleanVersions, in /activemq-web-console/pom.xml
        Execution cleanVersions, in /activemq-web-demo/pom.xml
        Execution cleanVersions, in /activemq-web/pom.xml
        Execution cleanVersions, in /activemq-xmpp/pom.xml
        Execution cleanVersions, in /kahadb/pom.xml
        Execution cleanVersions, in /maven-activemq-memtest-plugin/pom.xml
        Execution cleanVersions, in /maven-activemq-perf-plugin/pom.xml
        Execution cleanVersions, in /maven-activemq-plugin/pom.xml
maven-bundle-plugin:2.1.0:manifest Action=Resolve Later
        Execution bundle-manifest, in /activemq-web-console/pom.xml
maven-jaxb2-plugin:0.7.2:generate (1 errors)
        /activemq-xmpp/pom.xml
maven-plugin-plugin:2.5.1:descriptor (3 errors) Action=Resolve Later
        Execution default-descriptor, in /maven-activemq-memtest-plugin/pom.xml
        Execution default-descriptor, in /maven-activemq-perf-plugin/pom.xml
        Execution default-descriptor, in /maven-activemq-plugin/pom.xml
maven-xbean-plugin:3.7:mapping (2 errors) Action=Resolve Later
        /activemq-core/pom.xml
        /activemq-ra/pom.xml

I am not sure how to resolved the errors listed above.  When I build from the command line and ship the tests it seems to build, but when I try to do the same thing from within Luna it DOES NOT WORK.

All I want to do is to remotely debug an existing ActiveMQ-5.5.1.  I assume I have to have ActiveMQ-5.5.1 checked out into my workspace and that it should have no errors.  I cannot clear the errors until I built it and Maven in Luna is not working.

Help!  I am killing a bunch of time trying to do something I am sure ActiveMQ developers are doing on a daily basis.

If you know the step by step instructions on how to build ActiveMQ-5.8.0 inside of Eclipse Luna, send them to me and I will try that.
Reply | Threaded
Open this post in threaded view
|

Re: Errors trying to build ActiveMQ-5.5.1 from source

christopher.l.shannon
So there's a few things you'll probably need to do to make it work in
Eclipse.

First, build the project on the command line using Maven (this important
for step 3 so generated code is available)

Second, after importing as a Maven project into Eclipse, to fix issues with
maven in eclipse go to Maven Problems tree under Markers.  Expand that and
you can take care of the lifecycle mapping problems. Right click on an
error that says "Plugin execution not covered by lifecycle
configuration...." and go to quick fix. Then select "Mark goal descriptor
as ignored in Eclipse build in Eclipse preferences"  You'll need to repeat
this a few times but eventually that will clear up the maven errors as they
are related to plugin executions that you don't need to run in eclipse.

Lastly, you'll probably need to clean up some class path issues related to
generated code.  For example, for the activemq- client project you'll need
to edit the Java build path and add
activemq-client/target/generated-sources/javacc as a source folder.  (this
requires building on the command line first).  There could be other
projects with a similar issue.

Keep in mind that if there's a particular subproject giving you problems
building (such as maybe issues with building activemq-leveldb-store becuase
of Scala), you could always remove that specific subproject from Eclipse if
it isn't related to what you are trying to debug.



On Wed, Jun 17, 2015 at 1:52 PM, bbuzzard <[hidden email]>
wrote:

> I have ActiveMQ-5.5.1 on a production machine and I would like to remotely
> troubleshoot a specific camel route on it.  I have tried to Build
> ActiveMQ-5.8.0, but I seem to be running into similar problems.
>
> I am using Eclipse Luna 4.4.2.  Internally Luna is using the EMBEDDED Maven
> 3.2.1/1.5.2.20150413-2214. Luna is using jdk1.6.0_45.
>
> I connected to https://svn.apache.org/respos/asf and checked out
> ActiveMQ-5.5.1 as a Maven Project.  The dialog: Import Maven Projects:
> Setup
> Maven plugin connectors popped up and showed the following:
>
> activemq-protobuf:1.1:compile (1 errors)
>       Action=Resolve Later
>         /activemq-core/pom.xml
> javacc-maven-plugin:2.0:javacc (1 errors)
>      Action=Resolve Later
>         /activemq-core/pom.xml
> javacc-maven-plugin:2.6:javacc (1 errors)
>      Action=Resolve Later
>         /activemq-client/pom.xml
> maven-bundle-plugin:2.1.0:cleanVersions (24 errors)
>      Action=Resolve Later
>         Execution cleanVersions, in /activemq-all/pom.xml
>         Execution cleanVersions, in /activemq-blueprint/pom.xml
>         Execution cleanVersions, in /activemq-camel/pom.xml
>         Execution cleanVersions, in /activemq-console/pom.xml
>         Execution cleanVersions, in /activemq-core/pom.xml
>         Execution cleanVersions, in /activemq-fileserver/pom.xml
>         Execution cleanVersions, in /activemq-jaas/pom.xml
>         Execution cleanVersions, in /activemq-jmdns/pom.xml
>         Execution cleanVersions, in /activemq-karaf/pom.xml
>         Execution cleanVersions, in /activemq-openwire-generator/pom.xml
>         Execution cleanVersions, in /activemq-optional/pom.xml
>         Execution cleanVersions, in /activemq-pool/pom.xml
>         Execution cleanVersions, in /activemq-ra/pom.xml
>         Execution cleanVersions, in /activemq-rar/pom.xml
>         Execution cleanVersions, in /activemq-run/pom.xml
>         Execution cleanVersions, in /activemq-spring/pom.xml
>         Execution cleanVersions, in /activemq-web-console/pom.xml
>         Execution cleanVersions, in /activemq-web-demo/pom.xml
>         Execution cleanVersions, in /activemq-web/pom.xml
>         Execution cleanVersions, in /activemq-xmpp/pom.xml
>         Execution cleanVersions, in /kahadb/pom.xml
>         Execution cleanVersions, in /maven-activemq-memtest-plugin/pom.xml
>         Execution cleanVersions, in /maven-activemq-perf-plugin/pom.xml
>         Execution cleanVersions, in /maven-activemq-plugin/pom.xml
> maven-bundle-plugin:2.1.0:manifest
>       Action=Resolve Later
>         Execution bundle-manifest, in /activemq-web-console/pom.xml
> maven-jaxb2-plugin:0.7.2:generate (1 errors)
>         /activemq-xmpp/pom.xml
> maven-plugin-plugin:2.5.1:descriptor (3 errors)
>      Action=Resolve Later
>         Execution default-descriptor, in
> /maven-activemq-memtest-plugin/pom.xml
>         Execution default-descriptor, in
> /maven-activemq-perf-plugin/pom.xml
>         Execution default-descriptor, in /maven-activemq-plugin/pom.xml
> maven-xbean-plugin:3.7:mapping (2 errors)
>      Action=Resolve Later
>         /activemq-core/pom.xml
>         /activemq-ra/pom.xml
>
> I am not sure how to resolved the errors listed above.  When I build from
> the command line and ship the tests it seems to build, but when I try to do
> the same thing from within Luna it DOES NOT WORK.
>
> All I want to do is to remotely debug an existing ActiveMQ-5.5.1.  I assume
> I have to have ActiveMQ-5.5.1 checked out into my workspace and that it
> should have no errors.  I cannot clear the errors until I built it and
> Maven
> in Luna is not working.
>
> Help!  I am killing a bunch of time trying to do something I am sure
> ActiveMQ developers are doing on a daily basis.
>
> If you know the step by step instructions on how to build ActiveMQ-5.8.0
> inside of Eclipse Luna, send them to me and I will try that.
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Errors-trying-to-build-ActiveMQ-5-5-1-from-source-tp4697726p4697917.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Errors trying to build ActiveMQ-5.5.1 from source

bbuzzard
Thanks, your instructions were very helpful.  I've use Eclipse for over 15 years and I've use Maven, off and on, for at least 10 years, but never together.  This whole process was far more painful than I expected.  

I managed to clear all of the errors except the following and I'm not sure how to clear those.  Do you have any suggestions.

Description Resource Path Location Type
Name clash: The method containsKey(K) of type MapContainer<K,V> has the same erasure as containsKey(Object) of type Map<K,V> but does not override it MapContainer.java /activemq-core/src/main/java/org/apache/activemq/kaha line 86 Java Problem
Name clash: The method containsValue(K) of type MapContainer<K,V> has the same erasure as containsValue(Object) of type Map<K,V> but does not override it MapContainer.java /activemq-core/src/main/java/org/apache/activemq/kaha line 100 Java Problem
Name clash: The method get(K) of type MapContainer<K,V> has the same erasure as get(Object) of type Map<K,V> but does not override it MapContainer.java /activemq-core/src/main/java/org/apache/activemq/kaha line 94 Java Problem
Name clash: The method putAll(Map<K,V>) of type MapContainer<K,V> has the same erasure as putAll(Map<? extends K,? extends V>) of type Map<K,V> but does not override it MapContainer.java /activemq-core/src/main/java/org/apache/activemq/kaha line 107 Java Problem
Name clash: The method remove(K) of type MapContainer<K,V> has the same erasure as remove(Object) of type Map<K,V> but does not override it MapContainer.java /activemq-core/src/main/java/org/apache/activemq/kaha line 141 Java Problem
Reply | Threaded
Open this post in threaded view
|

Re: Errors trying to build ActiveMQ-5.5.1 from source

christopher.l.shannon
That is an error that was fixed in later versions of ActiveMQ.  ActiveMQ
5.8.0 should work because the interface methods in MapContainer have been
changed to fix that error.  It has to do with the compiler checking type
erasure and it seems that maybe the newer compilers are stricter about
that.

I forgot to mention that there is another way you can try importing into
eclipse which may work but I haven't tried it on Activemq.  You can try
running "mvn eclipse:eclipse" from the command line which will tell Maven
to generate the eclipse workspace files and then you can import the
projects as a normal java project.  I don't typically do this because the
downside is eclipse won't recognize your project as a maven project so you
won't be able to use the maven features from inside eclipse (such as being
able to right click and update the project from the maven menu)

On Wed, Jun 17, 2015 at 4:47 PM, bbuzzard <[hidden email]>
wrote:

> Thanks, your instructions were very helpful.  I've use Eclipse for over 15
> years and I've use Maven, off and on, for at least 10 years, but never
> together.  This whole process was far more painful than I expected.
>
> I managed to clear all of the errors except the following and I'm not sure
> how to clear those.  Do you have any suggestions.
>
> Description     Resource        Path    Location        Type
> Name clash: The method containsKey(K) of type MapContainer<K,V> has the
> same
> erasure as containsKey(Object) of type Map<K,V> but does not override it
> MapContainer.java
>  /activemq-core/src/main/java/org/apache/activemq/kaha   line
> 86      Java Problem
> Name clash: The method containsValue(K) of type MapContainer<K,V> has the
> same erasure as containsValue(Object) of type Map<K,V> but does not
> override
> it      MapContainer.java
>  /activemq-core/src/main/java/org/apache/activemq/kaha
> line 100        Java Problem
> Name clash: The method get(K) of type MapContainer<K,V> has the same
> erasure
> as get(Object) of type Map<K,V> but does not override it
> MapContainer.java
> /activemq-core/src/main/java/org/apache/activemq/kaha   line 94 Java
> Problem
> Name clash: The method putAll(Map<K,V>) of type MapContainer<K,V> has the
> same erasure as putAll(Map<? extends K,? extends V>) of type Map<K,V> but
> does not override it    MapContainer.java
> /activemq-core/src/main/java/org/apache/activemq/kaha   line 107
> Java Problem
> Name clash: The method remove(K) of type MapContainer<K,V> has the same
> erasure as remove(Object) of type Map<K,V> but does not override it
> MapContainer.java
>  /activemq-core/src/main/java/org/apache/activemq/kaha   line
> 141     Java Problem
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Errors-trying-to-build-ActiveMQ-5-5-1-from-source-tp4697726p4697931.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Errors trying to build ActiveMQ-5.5.1 from source

Claus Ibsen
In reply to this post by bbuzzard
Hi

If you want to remote debug a JVM then you can in Eclipse setup a
little maven project and add AMQ 5.5.1 as dependency. And then Eclipse
has a "button" to download sources. And you should be able to remote
debug with the source code. You would not need to build the JARs again
from source or to have all the code compiled.

And you can then also add Camel as dependency if you want to debug the
Camel source code. Just make sure to use the same Camel version as the
AMQ 5.5.1 does.




On Wed, Jun 17, 2015 at 7:52 PM, bbuzzard
<[hidden email]> wrote:

> I have ActiveMQ-5.5.1 on a production machine and I would like to remotely
> troubleshoot a specific camel route on it.  I have tried to Build
> ActiveMQ-5.8.0, but I seem to be running into similar problems.
>
> I am using Eclipse Luna 4.4.2.  Internally Luna is using the EMBEDDED Maven
> 3.2.1/1.5.2.20150413-2214. Luna is using jdk1.6.0_45.
>
> I connected to https://svn.apache.org/respos/asf and checked out
> ActiveMQ-5.5.1 as a Maven Project.  The dialog: Import Maven Projects: Setup
> Maven plugin connectors popped up and showed the following:
>
> activemq-protobuf:1.1:compile (1 errors)                                        Action=Resolve Later
>         /activemq-core/pom.xml
> javacc-maven-plugin:2.0:javacc (1 errors)                                       Action=Resolve Later
>         /activemq-core/pom.xml
> javacc-maven-plugin:2.6:javacc (1 errors)                                       Action=Resolve Later
>         /activemq-client/pom.xml
> maven-bundle-plugin:2.1.0:cleanVersions (24 errors)                             Action=Resolve Later
>         Execution cleanVersions, in /activemq-all/pom.xml
>         Execution cleanVersions, in /activemq-blueprint/pom.xml
>         Execution cleanVersions, in /activemq-camel/pom.xml
>         Execution cleanVersions, in /activemq-console/pom.xml
>         Execution cleanVersions, in /activemq-core/pom.xml
>         Execution cleanVersions, in /activemq-fileserver/pom.xml
>         Execution cleanVersions, in /activemq-jaas/pom.xml
>         Execution cleanVersions, in /activemq-jmdns/pom.xml
>         Execution cleanVersions, in /activemq-karaf/pom.xml
>         Execution cleanVersions, in /activemq-openwire-generator/pom.xml
>         Execution cleanVersions, in /activemq-optional/pom.xml
>         Execution cleanVersions, in /activemq-pool/pom.xml
>         Execution cleanVersions, in /activemq-ra/pom.xml
>         Execution cleanVersions, in /activemq-rar/pom.xml
>         Execution cleanVersions, in /activemq-run/pom.xml
>         Execution cleanVersions, in /activemq-spring/pom.xml
>         Execution cleanVersions, in /activemq-web-console/pom.xml
>         Execution cleanVersions, in /activemq-web-demo/pom.xml
>         Execution cleanVersions, in /activemq-web/pom.xml
>         Execution cleanVersions, in /activemq-xmpp/pom.xml
>         Execution cleanVersions, in /kahadb/pom.xml
>         Execution cleanVersions, in /maven-activemq-memtest-plugin/pom.xml
>         Execution cleanVersions, in /maven-activemq-perf-plugin/pom.xml
>         Execution cleanVersions, in /maven-activemq-plugin/pom.xml
> maven-bundle-plugin:2.1.0:manifest                                              Action=Resolve Later
>         Execution bundle-manifest, in /activemq-web-console/pom.xml
> maven-jaxb2-plugin:0.7.2:generate (1 errors)
>         /activemq-xmpp/pom.xml
> maven-plugin-plugin:2.5.1:descriptor (3 errors)                                 Action=Resolve Later
>         Execution default-descriptor, in /maven-activemq-memtest-plugin/pom.xml
>         Execution default-descriptor, in /maven-activemq-perf-plugin/pom.xml
>         Execution default-descriptor, in /maven-activemq-plugin/pom.xml
> maven-xbean-plugin:3.7:mapping (2 errors)                                       Action=Resolve Later
>         /activemq-core/pom.xml
>         /activemq-ra/pom.xml
>
> I am not sure how to resolved the errors listed above.  When I build from
> the command line and ship the tests it seems to build, but when I try to do
> the same thing from within Luna it DOES NOT WORK.
>
> All I want to do is to remotely debug an existing ActiveMQ-5.5.1.  I assume
> I have to have ActiveMQ-5.5.1 checked out into my workspace and that it
> should have no errors.  I cannot clear the errors until I built it and Maven
> in Luna is not working.
>
> Help!  I am killing a bunch of time trying to do something I am sure
> ActiveMQ developers are doing on a daily basis.
>
> If you know the step by step instructions on how to build ActiveMQ-5.8.0
> inside of Eclipse Luna, send them to me and I will try that.
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Errors-trying-to-build-ActiveMQ-5-5-1-from-source-tp4697726p4697917.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [hidden email]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/