You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by CAPS <al...@ngc.com> on 2014/01/09 00:32:57 UTC

Unable to Compile ActiveQ 5.2

HI

I have trouble compiling ActiveMQ5.2...The following is the error message,
please help!

************************************

Total time: 15.239s                                                                                                                                                                                                                   
[INFO] Finished at: Wed Jan 08 14:56:00 PST 2014                                                                                                                                                                                             
[INFO] Final Memory: 27M/348M                                                                                                                                                                                                                
[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]
/home/ayang/COTS/ActiveMQ-5.2.0/src/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java:[66,25]
error: name has private access in Usage                                                                                 
[ERROR]                                                                                                                                                                                                                                      
[ERROR]
/home/ayang/COTS/ActiveMQ-5.2.0/src/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java:[287,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]
/home/ayang/COTS/ActiveMQ-5.2.0/src/activemq-core/src/main/java/org/apache/activemq/usage/Usage.java:299:
error: removeChild(T) has private access in Usage                                                                          
[ERROR] parent.removeChild(this);                                                                                                                                                                                                            
[ERROR] ^                                                                                                                                                                                                                                    
[ERROR]                         



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
well, I exited out the test and then I got an error on the "user manual".

do I have to finish running the test? how long does it take?




--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676184.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by artnaseef <ar...@artnaseef.com>.
Yup - the tests run forever.  You're good-to-go with 5.2.  Hope we'll catch
you on a newer version at some point!



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676181.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
that did it!! it is the java issue!! 

but, my test case seem to run forever... 

I can stop it by doing the 
mvn clean install -Dmaven.test.skip=true 

thanks! 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676180.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by Johan Edstrom <se...@gmail.com>.
Why are you compiling and requiring a version this old?
You are kinda bound to run into problems.


On Jan 9, 2014, at 11:22 AM, CuriousMind <al...@ngc.com> wrote:

> thanks. let me try to compile with 1.5!
> 
> 
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676175.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
thanks. let me try to compile with 1.5!



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676175.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by Christian Posta <ch...@gmail.com>.
ActiveMQ 5.2 was originally built with 1.5, FYI.

Try 1.5 or 1.6.


On Thu, Jan 9, 2014 at 9:27 AM, Timothy Bish <ta...@gmail.com> wrote:
> On 01/09/2014 12:22 PM, CuriousMind wrote:
>>
>> http://svn.apache.org/repos/asf/activemq/tags/activemq-5.2.0
>>
>> hmm..how can I download all the directories at once? is there a tar or zip
>> file?
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676169.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> Use subversion
>
> svn co http://svn.apache.org/repos/asf/activemq/tags/activemq-5.2.0
>
>
> --
> Tim Bish
> Sr Software Engineer | RedHat Inc.
> tim.bish@redhat.com | www.fusesource.com | www.redhat.com
> skype: tabish121 | twitter: @tabish121
> blog: http://timbish.blogspot.com/
>



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Re: Unable to Compile ActiveQ 5.2

Posted by Timothy Bish <ta...@gmail.com>.
On 01/09/2014 12:22 PM, CuriousMind wrote:
> http://svn.apache.org/repos/asf/activemq/tags/activemq-5.2.0
>
> hmm..how can I download all the directories at once? is there a tar or zip
> file?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676169.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Use subversion

svn co http://svn.apache.org/repos/asf/activemq/tags/activemq-5.2.0

-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
http://svn.apache.org/repos/asf/activemq/tags/activemq-5.2.0

hmm..how can I download all the directories at once? is there a tar or zip
file?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676169.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by Timothy Bish <ta...@gmail.com>.
It'd probably be a better idea to pull the code from the svn tag.
http://svn.apache.org/repos/asf/activemq/tags/activemq-5.2.0

Just in case not everything was correctly rolled into the src archive.

On 01/09/2014 11:18 AM, Claus Ibsen wrote:
> What JDK are you using? AMQ 5.2 is very old, I guess you need JDK5 or 6.
>
> On Thu, Jan 9, 2014 at 5:14 PM, CuriousMind <al...@ngc.com> wrote:
>> download from https://archive.apache.org/dist/activemq/apache-activemq/5.2.0/
>>
>> 1. untar the file
>> 2. run "mvn clean install"
>>
>> and then ran into the errors mentioned above
>>
>> Alice
>>
>>
>>
>> --
>> View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676164.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
thank you.

That was what I ended up did.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676207.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by Christian Posta <ch...@gmail.com>.
maybe try comment that module out of the pom.xml? i dunno where to get
that missing dependency if not in maven. could try google for it and
put it into your local repo if you find it.

On Thu, Jan 9, 2014 at 1:38 PM, CuriousMind <al...@ngc.com> wrote:
> it failed on the User Guide
>
> 1. can I skip that?
> 2. where can I download the plugin?
>
> INFO] ActiveMQ User Guide ............................... FAILURE [0.018s]
> [INFO] ActiveMQ :: File Server ........................... SKIPPED
> [INFO] ActiveMQ :: RAR ................................... SKIPPED
> [INFO] ActiveMQ :: Run Jar ............................... SKIPPED
> [INFO] ActiveMQ :: Atomikos System Test .................. 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: 33.050s
> [INFO] Finished at: Thu Jan 09 13:30:30 PST 2014
> [INFO] Final Memory: 28M/174M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Plugin com.agilejava.docbkx:docbkx-maven-plugin:2.0.3 or one of its
> dependencies could not be resolved: Failure to find
> com.agilejava.docbkx:docbkx-maven-plugin:jar:2.0.3 in
> http://agilejava.com/maven/ was cached in the local repository, resolution
> will not be reattempted until the update interval of agilejava has elapsed
> or updates are forced -> [Help 1]
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676185.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
it failed on the User Guide

1. can I skip that? 
2. where can I download the plugin?

INFO] ActiveMQ User Guide ............................... FAILURE [0.018s]
[INFO] ActiveMQ :: File Server ........................... SKIPPED
[INFO] ActiveMQ :: RAR ................................... SKIPPED
[INFO] ActiveMQ :: Run Jar ............................... SKIPPED
[INFO] ActiveMQ :: Atomikos System Test .................. 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: 33.050s
[INFO] Finished at: Thu Jan 09 13:30:30 PST 2014
[INFO] Final Memory: 28M/174M
[INFO]
------------------------------------------------------------------------
[ERROR] Plugin com.agilejava.docbkx:docbkx-maven-plugin:2.0.3 or one of its
dependencies could not be resolved: Failure to find
com.agilejava.docbkx:docbkx-maven-plugin:jar:2.0.3 in
http://agilejava.com/maven/ was cached in the local repository, resolution
will not be reattempted until the update interval of agilejava has elapsed
or updates are forced -> [Help 1]




--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676185.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
that did it!! it is the java issue!!

but, my test case seem to run forever...

I can stop it by doing the 
mvn clean install -Dmaven.test.skip=true

thanks!



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676176.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
where does it say about using JDK 5 or 6?? where is the requirement?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676168.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
5.2 is very old, but it is required. I am using JDK 1.7



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676167.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by Claus Ibsen <cl...@gmail.com>.
What JDK are you using? AMQ 5.2 is very old, I guess you need JDK5 or 6.

On Thu, Jan 9, 2014 at 5:14 PM, CuriousMind <al...@ngc.com> wrote:
> download from https://archive.apache.org/dist/activemq/apache-activemq/5.2.0/
>
> 1. untar the file
> 2. run "mvn clean install"
>
> and then ran into the errors mentioned above
>
> Alice
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676164.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Re: Unable to Compile ActiveQ 5.2

Posted by CuriousMind <al...@ngc.com>.
download from https://archive.apache.org/dist/activemq/apache-activemq/5.2.0/

1. untar the file
2. run "mvn clean install"

and then ran into the errors mentioned above

Alice



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676164.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by artnaseef <ar...@artnaseef.com>.
Please provide the steps you are using to compile, starting with obtaining
the 5.2 sources.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676141.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to Compile ActiveQ 5.2

Posted by CAPS <al...@ngc.com>.
Please help!



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-Compile-ActiveQ-5-2-tp4676139p4676140.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.