upgarde to actimemq 5.8.x in servicemix 4.4.1

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

upgarde to actimemq 5.8.x in servicemix 4.4.1

nvtd4000
I am using smx 4.4.1 which includes activemq 5.5.1.
Do you know how to upgrade to activemq 5.8.x.
Sorry, by some reasons, i can not use newer servicemmix.
Reply | Threaded
Open this post in threaded view
|

Re: upgarde to actimemq 5.8.x in servicemix 4.4.1

Gert Vanthienen
Administrator
L.S.,


Upgrading the ActiveMQ version will probably require you to update
some other stuff as well (e.g. to have a matching Camel, Spring, ...
version).  I just tried this particular upgrade here and it looks like
at least some Spring bundles need upgrading as well.  You could off
course update all the related bundles and assemble your own container
again (either on ServiceMix or starting with a plain Karaf instance).
Looking at the POMs, ActiveMQ was built with Camel 2.10.3 and Karaf
2.2.9, so that combination should work.

If you're unable to use a newer version of ServiceMix, you probably
won't be able to migrate to a home-brewed container either though.  As
an alternative, you could always just install ActiveMQ 5.8.0 on the
same machine and disable the the activemq instance that's inside
ServiceMix as well.  That way, you can connect to the stand-alone
broker from the Camel routes or CXF endpoints in your ServiceMix
instance.


Regards,

Gert Vanthienen


On Thu, Mar 27, 2014 at 7:31 PM, nvtd4000 <[hidden email]> wrote:
> I am using smx 4.4.1 which includes activemq 5.5.1.
> Do you know how to upgrade to activemq 5.8.x.
> Sorry, by some reasons, i can not use newer servicemmix.
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/upgarde-to-actimemq-5-8-x-in-servicemix-4-4-1-tp5719732.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/
Reply | Threaded
Open this post in threaded view
|

Re: upgarde to actimemq 5.8.x in servicemix 4.4.1

nvtd4000
Thanks Gert.
Looks like the upgrading is not easy. My core problem is due to kahadb, it has some bugs that need to upgrade to kahadb 5.8.0 (this is from my research in google).

I heard that we can use leveldb to replace kahadb. Do you know how to do that in servicemix 4.4.1 and activemq 5.5.1.
Reply | Threaded
Open this post in threaded view
|

Re: upgarde to actimemq 5.8.x in servicemix 4.4.1

Gert Vanthienen
Administrator
L.S.,


Using LevelDB with ActiveMQ 5.5.1 won't work, I think.  You'll need at
least the 5.6.0 version because that's the first Apache release to
include http://svn.apache.org/viewvc?view=revision&revision=1227185
which is required for the LevelDB store to work.

However, I just tried upgrading 4.4.1 to ActiveMQ 5.6.0 and that did
work out fine here.  If you edit the etc/org.apache.karaf.features.cfg
file and configure that to use version 5.6.0 of the ActiveMQ features
file, you can delete the data directory and restart the container to
get Apache ServiceMix 4.4.1 running together with ActiveMQ 5.6.0.


Regards,

Gert Vanthienen


On Sat, Mar 29, 2014 at 5:08 AM, nvtd4000 <[hidden email]> wrote:

> Thanks Gert.
> Looks like the upgrading is not easy. My core problem is due to kahadb, it
> has some bugs that need to upgrade to kahadb 5.8.0 (this is from my research
> in google).
>
> I heard that we can use leveldb to replace kahadb. Do you know how to do
> that in servicemix 4.4.1 and activemq 5.5.1.
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/upgarde-to-actimemq-5-8-x-in-servicemix-4-4-1-tp5719732p5719754.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/
Reply | Threaded
Open this post in threaded view
|

Re: upgarde to actimemq 5.8.x in servicemix 4.4.1

Raúl Kripalani
It's probably wiser to use higher versions of AMQ than 5.6.0. To my
knowledge, the LevelDB persistence adapter was somewhat experimental in
that version and wasn't considered stable enough for production use until
at least 5.7.0.

Regards,

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Mon, Mar 31, 2014 at 11:21 AM, Gert Vanthienen <[hidden email]
> wrote:

> L.S.,
>
>
> Using LevelDB with ActiveMQ 5.5.1 won't work, I think.  You'll need at
> least the 5.6.0 version because that's the first Apache release to
> include http://svn.apache.org/viewvc?view=revision&revision=1227185
> which is required for the LevelDB store to work.
>
> However, I just tried upgrading 4.4.1 to ActiveMQ 5.6.0 and that did
> work out fine here.  If you edit the etc/org.apache.karaf.features.cfg
> file and configure that to use version 5.6.0 of the ActiveMQ features
> file, you can delete the data directory and restart the container to
> get Apache ServiceMix 4.4.1 running together with ActiveMQ 5.6.0.
>
>
> Regards,
>
> Gert Vanthienen
>
>
> On Sat, Mar 29, 2014 at 5:08 AM, nvtd4000 <[hidden email]> wrote:
> > Thanks Gert.
> > Looks like the upgrading is not easy. My core problem is due to kahadb,
> it
> > has some bugs that need to upgrade to kahadb 5.8.0 (this is from my
> research
> > in google).
> >
> > I heard that we can use leveldb to replace kahadb. Do you know how to do
> > that in servicemix 4.4.1 and activemq 5.5.1.
> >
> >
> >
> > --
> > View this message in context:
> http://servicemix.396122.n5.nabble.com/upgarde-to-actimemq-5-8-x-in-servicemix-4-4-1-tp5719732p5719754.html
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: upgarde to actimemq 5.8.x in servicemix 4.4.1

nvtd4000
This post was updated on .
Thanks all.
i tried using servicemix 4.5.3 and install activemq-extra which includes leveldb 5.7.0

feature:list |grep -i  activemq
[installed  ] [4.5.3          ] activemq-broker                       servicemix-4.5.3
[installed  ] [5.7.0          ] activemq                                 activemq-5.7.0
[installed  ] [5.7.0          ] activemq-spring                       activemq-5.7.0
[installed  ] [5.7.0          ] activemq-blueprint                    activemq-5.7.0
[installed  ] [5.7.0          ] activemq-extra                        activemq-5.7.0

in smx/etc/activemq-broker.xml, i replaced kahadb by leveldb
                <persistenceAdapter>
                        <levelDB directory="${karaf.data}/data/leveldb" logSize="107374182"/>
                </persistenceAdapter>
But when i start smx, i see the error:

15:14:32,088 | INFO  | icemix-4.5.3/etc | fileinstall                      | 7 - org.apache.felix.fileinstall - 3.2.4 | Started bundle: blueprint:file:/aaaaa/apache-servicemix-4.5.3/etc/activemq-broker.xml
15:14:32,263 | ERROR | rint Extender: 1 | BlueprintContainerImpl           | 10 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint container for bundle activemq-broker.xml
org.osgi.service.blueprint.container.ComponentDefinitionException: Unknown bean class: org.apache.activemq.store.leveldb.LevelDBPersistenceAdapter
        at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parseInternal(XBeanNamespaceHandler.java:254)[66:org.apache.xbean.blueprint:3.11.1]
        at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:244)[66:org.apache.xbean.blueprint:3.11.1]
        at org.apache.aries.blueprint.container.Parser.parseCustomElement(Parser.java:1248)[10:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.Parser.parseValueGroup(Parser.java:1169)[10:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.Parser.parseElement(Parser.java:381)[10:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.ParserContextImpl.parseElement(ParserContextImpl.java:69)[10:org.apache.aries.blueprint:0.3.2]
        at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parseChildExtensionBean(XBeanNamespaceHandler.java:430)[66:org.apache.xbean.blueprint:3.11.1]
        at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:469)[66:org.apache.xbean.blueprint:3.11.1]
        at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.tryParseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:457)[66:org.apache.xbean.blueprint:3.11.1]
        at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.nestedProperties(XBeanNamespaceHandler.java:374)[66:org.apache.xbean.blueprint:3.11.1]
        at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parseInternal(XBeanNamespaceHandler.java:268)[66:org.apache.xbean.blueprint:3.11.1]
        at org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:244)[66:org.apache.xbean.blueprint:3.11.1]
        at org.apache.aries.blueprint.container.Parser.parseCustomElement(Parser.java:1248)[10:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.Parser.loadComponents(Parser.java:337)[10:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.Parser.populate(Parser.java:277)[10:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:283)[10:org.apache.aries.blueprint:0.3.2]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[10:org.apache.aries.blueprint:0.3.2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_45]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_45]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_45]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_45]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_45]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]
Reply | Threaded
Open this post in threaded view
|

Re: upgarde to actimemq 5.8.x in servicemix 4.4.1

Gert Vanthienen
Administrator
L.S.,


Unfortunately, it looks like that class is missing from the
activemq-leveldb bundle - I do see it in the activemq-leveldb JAR
file, but the bundle doesn't have it.  You probably need to look into
upgrading to a more recent version of ActiveMQ (or else repackage the
activemq-leveldb bundle/fragment to include the missing files).  If
you can't upgrade Camel/Karaf/..., there's always the option of
running ActiveMQ outside of ServiceMix and just connecting to it.


Regards,

Gert Vanthienen


On Mon, Mar 31, 2014 at 11:36 PM, nvtd4000 <[hidden email]> wrote:

> Thanks al.
> i tried using servicemix 4.5.3 and istall activemq-extra which includes
> leveldb 5.7.0
>
> feature:list |grep -i  activemq
> [installed  ] [4.5.3          ] activemq-broker
> servicemix-4.5.3
> [installed  ] [5.7.0          ] activemq
> activemq-5.7.0
> [installed  ] [5.7.0          ] activemq-spring
> activemq-5.7.0
> [installed  ] [5.7.0          ] activemq-blueprint
> activemq-5.7.0
> [installed  ] [5.7.0          ] activemq-extra
> activemq-5.7.0
>
> in smx/etc/activemq-broker.xml, i replace kahadb by leveldb
>                 <persistenceAdapter>
>                         <levelDB directory="${karaf.data}/data/leveldb" logSize="107374182"/>
>                 </persistenceAdapter>
> But when i start smx, i see the error:
>
> 15:14:32,088 | INFO  | icemix-4.5.3/etc | fileinstall                      |
> 7 - org.apache.felix.fileinstall - 3.2.4 | Started bundle:
> blueprint:file:/C:/AA_DavidNguyen/Tools/apache-servicemix-4.5.3/etc/activemq-broker.xml
> 15:14:32,263 | ERROR | rint Extender: 1 | BlueprintContainerImpl           |
> 10 - org.apache.aries.blueprint - 0.3.2 | Unable to start blueprint
> container for bundle activemq-broker.xml
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unknown
> bean class: org.apache.activemq.store.leveldb.LevelDBPersistenceAdapter
>         at
> org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parseInternal(XBeanNamespaceHandler.java:254)[66:org.apache.xbean.blueprint:3.11.1]
>         at
> org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:244)[66:org.apache.xbean.blueprint:3.11.1]
>         at
> org.apache.aries.blueprint.container.Parser.parseCustomElement(Parser.java:1248)[10:org.apache.aries.blueprint:0.3.2]
>         at
> org.apache.aries.blueprint.container.Parser.parseValueGroup(Parser.java:1169)[10:org.apache.aries.blueprint:0.3.2]
>         at
> org.apache.aries.blueprint.container.Parser.parseElement(Parser.java:381)[10:org.apache.aries.blueprint:0.3.2]
>         at
> org.apache.aries.blueprint.container.ParserContextImpl.parseElement(ParserContextImpl.java:69)[10:org.apache.aries.blueprint:0.3.2]
>         at
> org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parseChildExtensionBean(XBeanNamespaceHandler.java:430)[66:org.apache.xbean.blueprint:3.11.1]
>         at
> org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:469)[66:org.apache.xbean.blueprint:3.11.1]
>         at
> org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.tryParseNestedPropertyViaIntrospection(XBeanNamespaceHandler.java:457)[66:org.apache.xbean.blueprint:3.11.1]
>         at
> org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.nestedProperties(XBeanNamespaceHandler.java:374)[66:org.apache.xbean.blueprint:3.11.1]
>         at
> org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parseInternal(XBeanNamespaceHandler.java:268)[66:org.apache.xbean.blueprint:3.11.1]
>         at
> org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler.parse(XBeanNamespaceHandler.java:244)[66:org.apache.xbean.blueprint:3.11.1]
>         at
> org.apache.aries.blueprint.container.Parser.parseCustomElement(Parser.java:1248)[10:org.apache.aries.blueprint:0.3.2]
>         at
> org.apache.aries.blueprint.container.Parser.loadComponents(Parser.java:337)[10:org.apache.aries.blueprint:0.3.2]
>         at
> org.apache.aries.blueprint.container.Parser.populate(Parser.java:277)[10:org.apache.aries.blueprint:0.3.2]
>         at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:283)[10:org.apache.aries.blueprint:0.3.2]
>         at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:230)[10:org.apache.aries.blueprint:0.3.2]
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_45]
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_45]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_45]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_45]
>         at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_45]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_45]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_45]
>         at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/upgarde-to-actimemq-5-8-x-in-servicemix-4-4-1-tp5719732p5719772.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/