You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Renato Marroquín Mogrovejo <re...@gmail.com> on 2015/08/09 10:08:53 UTC

Maven dependencies

Hi all,

I am working towards an integration of ActiveMQ and Samza [1].
I have been playing around with ActiveMQ following this tutorial here [2]
which is very similar to the actual ActiveMQ webpage. Everything was great
and fun. Then, I tried upgrading the dependencies in order to use the
latest available versions but I think I need some help on it.

* org.springframework.spring --> Tutorial: 2.5.5 --> Latest: ???
* org.apache.camel.camel-activemq --> Tutorial: 1.1.0 --> Latest: ???

I tried replacing it with org.apache.activemq.activemq-camel 5.11.1 but I
got
[ERROR] Failed to execute goal
org.apache.activemq.tooling:maven-activemq-plugin:5.2.0:run (default-cli)
on project mq: Failed to start ActiveMQ Broker: Error creating bean with
name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in URL
[file:./conf/activemq.xml]: Invocation of init method failed; nested
exception is java.lang.RuntimeException: Fatally failed to create
SystemUsageorg.apache.activemq.store.kahadb.KahaDBPersistenceAdapte

* org.apache.activemq.tooling.maven-activemq-plugin --> Tutorial: 5.2.0 -->
Latest: 5.7.0
But I couldn't figure out the correct versions for spring and camel-activemq

* org.apache.activemq.activemq-core --> Tutorial: 5.2.0 --> Latest: 5.7.0
is this the latest and correct version??

* And replace JBoss javax.jms depency for
org.apache.geronimo.specs.geronimo-jms_1.1_spec (1.1.1)
is this fine? or should I supposed that I just got lucky on this one?

If anybody could help me sorting out the correct versions or point me to a
more updated documentation would be great! Thanks!


Renato M.

[1] https://issues.apache.org/jira/browse/SAMZA-587
[2]
http://pookey.co.uk/wordpress/archives/74-playing-with-activemq-using-maven

Re: Maven dependencies

Posted by artnaseef <ar...@artnaseef.com>.
Yup, looks like a version issue.

Also, taking a quick look at [2] in the Ops message, it seems the author
there is using the activemq maven plugin as a way to get started quickly
with using ActiveMQ.  I wouldn't go that route to start with as it can be
harder to see what's going on with ActiveMQ.

My recommendation is to run ActiveMQ locally.  Download the TGZ or ZIP file
and run it that way, preferably with the "console" options (e.g.
bin/activemq console) so that you can see the broker logging on the console. 
Of course, this requires a dedicated terminal window.

Here's the "getting started" page for ActiveMQ itself:
http://activemq.apache.org/getting-started.html

Once you have activemq running on its own, then configure your client to
connect to it using the TCP transport (e.g. broker url
tcp://localhost:61616).

Hope this helps.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Maven-dependencies-tp4700623p4700719.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: Maven dependencies

Posted by Renato Marroquín Mogrovejo <re...@gmail.com>.
Hi Christopher,

Thanks for your help! I upgraded the plugin to 5.11.1 and I
changed activemq-core to activemq-client and org.springframework.spring to
org.springframework.spring-context.


Renato M.

2015-08-10 9:16 GMT-07:00 Christopher Shannon <
christopher.l.shannon@gmail.com>:

> The easiest way to figure out dependencies is probably to just look at the
> parent pom that ActiveMQ is using.  Here it is on github for 5.11.1
>
> https://github.com/apache/activemq/blob/863e8a5d1ba38f262bdbec4484d704fba8e4f695/pom.xml
>
> Your specific issue is that you have mismatched versions of ActiveMQ
> modules and all of your versions for ActiveMQ should match up.  So if you
> update activemq-camel to 5.11.1 then activemq-maven-plugin should be the
> same, etc. (It looks like you are using 5.2.0 for the maven plugin instead
> of 5.11.1)  The spring version should be at least 3.2.x but you should be
> able to use a newer version and have it work.
>
> On Sun, Aug 9, 2015 at 4:08 AM, Renato Marroquín Mogrovejo <
> renatoj.marroquin@gmail.com> wrote:
>
> > Hi all,
> >
> > I am working towards an integration of ActiveMQ and Samza [1].
> > I have been playing around with ActiveMQ following this tutorial here [2]
> > which is very similar to the actual ActiveMQ webpage. Everything was
> great
> > and fun. Then, I tried upgrading the dependencies in order to use the
> > latest available versions but I think I need some help on it.
> >
> > * org.springframework.spring --> Tutorial: 2.5.5 --> Latest: ???
> > * org.apache.camel.camel-activemq --> Tutorial: 1.1.0 --> Latest: ???
> >
> > I tried replacing it with org.apache.activemq.activemq-camel 5.11.1 but I
> > got
> > [ERROR] Failed to execute goal
> > org.apache.activemq.tooling:maven-activemq-plugin:5.2.0:run (default-cli)
> > on project mq: Failed to start ActiveMQ Broker: Error creating bean with
> > name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in URL
> > [file:./conf/activemq.xml]: Invocation of init method failed; nested
> > exception is java.lang.RuntimeException: Fatally failed to create
> > SystemUsageorg.apache.activemq.store.kahadb.KahaDBPersistenceAdapte
> >
> > * org.apache.activemq.tooling.maven-activemq-plugin --> Tutorial: 5.2.0
> -->
> > Latest: 5.7.0
> > But I couldn't figure out the correct versions for spring and
> > camel-activemq
> >
> > * org.apache.activemq.activemq-core --> Tutorial: 5.2.0 --> Latest: 5.7.0
> > is this the latest and correct version??
> >
> > * And replace JBoss javax.jms depency for
> > org.apache.geronimo.specs.geronimo-jms_1.1_spec (1.1.1)
> > is this fine? or should I supposed that I just got lucky on this one?
> >
> > If anybody could help me sorting out the correct versions or point me to
> a
> > more updated documentation would be great! Thanks!
> >
> >
> > Renato M.
> >
> > [1] https://issues.apache.org/jira/browse/SAMZA-587
> > [2]
> >
> http://pookey.co.uk/wordpress/archives/74-playing-with-activemq-using-maven
> >
>

Re: Maven dependencies

Posted by Renato Marroquín Mogrovejo <re...@gmail.com>.
Hi Christopher,

Thanks for your help! I upgraded the plugin to 5.11.1 and I
changed activemq-core to activemq-client and org.springframework.spring to
org.springframework.spring-context.


Renato M.

2015-08-10 9:16 GMT-07:00 Christopher Shannon <
christopher.l.shannon@gmail.com>:

> The easiest way to figure out dependencies is probably to just look at the
> parent pom that ActiveMQ is using.  Here it is on github for 5.11.1
>
> https://github.com/apache/activemq/blob/863e8a5d1ba38f262bdbec4484d704fba8e4f695/pom.xml
>
> Your specific issue is that you have mismatched versions of ActiveMQ
> modules and all of your versions for ActiveMQ should match up.  So if you
> update activemq-camel to 5.11.1 then activemq-maven-plugin should be the
> same, etc. (It looks like you are using 5.2.0 for the maven plugin instead
> of 5.11.1)  The spring version should be at least 3.2.x but you should be
> able to use a newer version and have it work.
>
> On Sun, Aug 9, 2015 at 4:08 AM, Renato Marroquín Mogrovejo <
> renatoj.marroquin@gmail.com> wrote:
>
> > Hi all,
> >
> > I am working towards an integration of ActiveMQ and Samza [1].
> > I have been playing around with ActiveMQ following this tutorial here [2]
> > which is very similar to the actual ActiveMQ webpage. Everything was
> great
> > and fun. Then, I tried upgrading the dependencies in order to use the
> > latest available versions but I think I need some help on it.
> >
> > * org.springframework.spring --> Tutorial: 2.5.5 --> Latest: ???
> > * org.apache.camel.camel-activemq --> Tutorial: 1.1.0 --> Latest: ???
> >
> > I tried replacing it with org.apache.activemq.activemq-camel 5.11.1 but I
> > got
> > [ERROR] Failed to execute goal
> > org.apache.activemq.tooling:maven-activemq-plugin:5.2.0:run (default-cli)
> > on project mq: Failed to start ActiveMQ Broker: Error creating bean with
> > name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in URL
> > [file:./conf/activemq.xml]: Invocation of init method failed; nested
> > exception is java.lang.RuntimeException: Fatally failed to create
> > SystemUsageorg.apache.activemq.store.kahadb.KahaDBPersistenceAdapte
> >
> > * org.apache.activemq.tooling.maven-activemq-plugin --> Tutorial: 5.2.0
> -->
> > Latest: 5.7.0
> > But I couldn't figure out the correct versions for spring and
> > camel-activemq
> >
> > * org.apache.activemq.activemq-core --> Tutorial: 5.2.0 --> Latest: 5.7.0
> > is this the latest and correct version??
> >
> > * And replace JBoss javax.jms depency for
> > org.apache.geronimo.specs.geronimo-jms_1.1_spec (1.1.1)
> > is this fine? or should I supposed that I just got lucky on this one?
> >
> > If anybody could help me sorting out the correct versions or point me to
> a
> > more updated documentation would be great! Thanks!
> >
> >
> > Renato M.
> >
> > [1] https://issues.apache.org/jira/browse/SAMZA-587
> > [2]
> >
> http://pookey.co.uk/wordpress/archives/74-playing-with-activemq-using-maven
> >
>

Re: Maven dependencies

Posted by Christopher Shannon <ch...@gmail.com>.
The easiest way to figure out dependencies is probably to just look at the
parent pom that ActiveMQ is using.  Here it is on github for 5.11.1
https://github.com/apache/activemq/blob/863e8a5d1ba38f262bdbec4484d704fba8e4f695/pom.xml

Your specific issue is that you have mismatched versions of ActiveMQ
modules and all of your versions for ActiveMQ should match up.  So if you
update activemq-camel to 5.11.1 then activemq-maven-plugin should be the
same, etc. (It looks like you are using 5.2.0 for the maven plugin instead
of 5.11.1)  The spring version should be at least 3.2.x but you should be
able to use a newer version and have it work.

On Sun, Aug 9, 2015 at 4:08 AM, Renato Marroquín Mogrovejo <
renatoj.marroquin@gmail.com> wrote:

> Hi all,
>
> I am working towards an integration of ActiveMQ and Samza [1].
> I have been playing around with ActiveMQ following this tutorial here [2]
> which is very similar to the actual ActiveMQ webpage. Everything was great
> and fun. Then, I tried upgrading the dependencies in order to use the
> latest available versions but I think I need some help on it.
>
> * org.springframework.spring --> Tutorial: 2.5.5 --> Latest: ???
> * org.apache.camel.camel-activemq --> Tutorial: 1.1.0 --> Latest: ???
>
> I tried replacing it with org.apache.activemq.activemq-camel 5.11.1 but I
> got
> [ERROR] Failed to execute goal
> org.apache.activemq.tooling:maven-activemq-plugin:5.2.0:run (default-cli)
> on project mq: Failed to start ActiveMQ Broker: Error creating bean with
> name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in URL
> [file:./conf/activemq.xml]: Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Fatally failed to create
> SystemUsageorg.apache.activemq.store.kahadb.KahaDBPersistenceAdapte
>
> * org.apache.activemq.tooling.maven-activemq-plugin --> Tutorial: 5.2.0 -->
> Latest: 5.7.0
> But I couldn't figure out the correct versions for spring and
> camel-activemq
>
> * org.apache.activemq.activemq-core --> Tutorial: 5.2.0 --> Latest: 5.7.0
> is this the latest and correct version??
>
> * And replace JBoss javax.jms depency for
> org.apache.geronimo.specs.geronimo-jms_1.1_spec (1.1.1)
> is this fine? or should I supposed that I just got lucky on this one?
>
> If anybody could help me sorting out the correct versions or point me to a
> more updated documentation would be great! Thanks!
>
>
> Renato M.
>
> [1] https://issues.apache.org/jira/browse/SAMZA-587
> [2]
> http://pookey.co.uk/wordpress/archives/74-playing-with-activemq-using-maven
>

Re: Maven dependencies

Posted by Christopher Shannon <ch...@gmail.com>.
The easiest way to figure out dependencies is probably to just look at the
parent pom that ActiveMQ is using.  Here it is on github for 5.11.1
https://github.com/apache/activemq/blob/863e8a5d1ba38f262bdbec4484d704fba8e4f695/pom.xml

Your specific issue is that you have mismatched versions of ActiveMQ
modules and all of your versions for ActiveMQ should match up.  So if you
update activemq-camel to 5.11.1 then activemq-maven-plugin should be the
same, etc. (It looks like you are using 5.2.0 for the maven plugin instead
of 5.11.1)  The spring version should be at least 3.2.x but you should be
able to use a newer version and have it work.

On Sun, Aug 9, 2015 at 4:08 AM, Renato Marroquín Mogrovejo <
renatoj.marroquin@gmail.com> wrote:

> Hi all,
>
> I am working towards an integration of ActiveMQ and Samza [1].
> I have been playing around with ActiveMQ following this tutorial here [2]
> which is very similar to the actual ActiveMQ webpage. Everything was great
> and fun. Then, I tried upgrading the dependencies in order to use the
> latest available versions but I think I need some help on it.
>
> * org.springframework.spring --> Tutorial: 2.5.5 --> Latest: ???
> * org.apache.camel.camel-activemq --> Tutorial: 1.1.0 --> Latest: ???
>
> I tried replacing it with org.apache.activemq.activemq-camel 5.11.1 but I
> got
> [ERROR] Failed to execute goal
> org.apache.activemq.tooling:maven-activemq-plugin:5.2.0:run (default-cli)
> on project mq: Failed to start ActiveMQ Broker: Error creating bean with
> name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in URL
> [file:./conf/activemq.xml]: Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Fatally failed to create
> SystemUsageorg.apache.activemq.store.kahadb.KahaDBPersistenceAdapte
>
> * org.apache.activemq.tooling.maven-activemq-plugin --> Tutorial: 5.2.0 -->
> Latest: 5.7.0
> But I couldn't figure out the correct versions for spring and
> camel-activemq
>
> * org.apache.activemq.activemq-core --> Tutorial: 5.2.0 --> Latest: 5.7.0
> is this the latest and correct version??
>
> * And replace JBoss javax.jms depency for
> org.apache.geronimo.specs.geronimo-jms_1.1_spec (1.1.1)
> is this fine? or should I supposed that I just got lucky on this one?
>
> If anybody could help me sorting out the correct versions or point me to a
> more updated documentation would be great! Thanks!
>
>
> Renato M.
>
> [1] https://issues.apache.org/jira/browse/SAMZA-587
> [2]
> http://pookey.co.uk/wordpress/archives/74-playing-with-activemq-using-maven
>