You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by djBo <ro...@gmail.com> on 2016/05/28 14:16:02 UTC

Installation in Karaf fails since 2.17

Hi,

I wanted to share my latest experience installing Camel and ActiveMQ in
Karaf.

Karaf: 4.0.5
ActiveMQ: 5.13.3
Camel: Anything lower than 2.17.0!

After creating a clean Ubuntu 16.04 installation with Oracle JDK8, I wanted
to create a mini ESB using Karaf, ActiveMQ and Camel. I downloaded the
lastest Karaf release from the site (4.0.5) and unpacked it under /opt. Then
started it, and used the following to finalize the installation:

feature:install http
feature:install http-whiteboard
feature:install webconsole
----
feature:repo-add camel 2.16.3
feature:repo-add activemq 5.13.3
feature:install activemq-broker
feature:install activemq-camel <-- fails for camel 2.17.0 and up
----
feature:install camel-http camel-jackson camel-servlet

At first, I was using camel 2.17.1, which kept failing searching for xbean.
Then after some searching, someone claimed no issues using 2.16.1/5.13.0.
After trying this, I realized something must be up with either ActiveMQ or
Camel, as this version combo works perfectly.
After increasing the release versions one at a time, I came to the point
where I wanted 2.17.0/5.13.3. This version combo fails to restart the broker
due to complicated factors of various spring versions being installed. I was
not able to fix these errors by hand :(

The only conclusion I could make, is that since the Camel 2.17 release,
something changed. After doing a diff between
http://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/2.16.3/apache-camel-2.16.3-features.xml
and
http://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/2.17.0/apache-camel-2.17.0-features.xml,
the biggest change that could be the culprit is the modification of the
camel-spring-batch feature, now requiring a newer Spring.

I also observe this when doing the actual installation with these versions,
and notice three different versions of Spring are installed, which is not
the case in the lastest 2.16 release.

I personally do not know how to fix this for *my* current situation, or if a
proper workaround exists. Glossing over the various Google mentions in this
subject keeps revealing the developers being unable to reproduce the issue.

With kind regards,
Rory



--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by djBo <ro...@gmail.com>.
souciance wrote
> Hmm, it seems to complain about parsing the file:
> 
> resource[file:/opt/apache-karaf-4.0.5/etc/activemq.xml
> 
> Do you check that the file looks correct and all the settings there
> are as expected?

This file gets installed when performing "feature:install activemq-broker".
The broker is working just fine after this command, as the log shows. When
"activemq-camel" is installed afterwards, the broker is restarted, which is
when the error occurs...

I can replace "feature:install activemq-broker" with "feature:install
activemq-broker-noweb" and the problem remains.



--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783206.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by djBo <ro...@gmail.com>.
Ed Welch wrote
> This thread caught my eye, are you perhaps seeing this issue:
> https://issues.apache.org/jira/browse/AMQ-6230 or one of the related
> issues?

Yes. From the differences in logs on installations, I can clearly see 2.17
and up installing additional spring packages, creating conflicts.

Yesterday, when trying to break down the problem, I instead installed the
activemq-camel bundle by hand (as opposed to using the feature:install
command). After stopping the bundle, I was able to clearly see the related
multiple chain for org.springframework.core causing the root of the problem.
There are several other mentions in jira that tune in closer to the Spring
issues when combining activemq/camel.




--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783207.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by djBo <ro...@gmail.com>.
Ed,

Looking closer at the mentioned issue, it is clear this won't be fixed very
soon.
The camel-crew believes this is an ActiveMQ problem, whilst it is clear that
it is the camel project at fault.


Claus Ibsen wrote
> Its really not a Camel problem. Its ActiveMQ itself that needs to do
> better at OSGi and install and support what it uses.
> There is a somewhat crappy activemq-osgi module that has some old
> spring-dm code directly using a spring osgi bundle class and whatnot.

To be honest, this statement is kinda false. I've been checking the various
ActiveMQ versions not only in Karaf, but also at the source level. There are
barely any huge changes regarding spring. But looking at the source changes
between Camel 2.16.3 and 2.17.0, it is clear that the the project wants a
lot more spring than before, which is clearly shown when installing it in
karaf (where the 2.17 series installs *three* (3) different versions of
Spring)

Digging further, it seems there isn't an issue made for Camel itself
regarding this problem, so it'll remain until some dev at camel will pick
this one  up and realize it's *not* an activemq issue lol

Cheers,
Rory




--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783875.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by Ed Welch <ed...@edjusted.com>.
This thread caught my eye, are you perhaps seeing this issue: https://issues.apache.org/jira/browse/AMQ-6230 or one of the related issues?

Ed

On Sat, 28 May 2016 08:51:38 -0700 (MST), souciance <so...@gmail.com> wrote:

> Hmm, it seems to complain about parsing the file:
> 
> resource[file:/opt/apache-karaf-4.0.5/etc/activemq.xml
> 
> Do you check that the file looks correct and all the settings there
> are as expected?
> 
> 
> 
> On Sat, May 28, 2016 at 5:30 PM, djBo [via Camel] <
> ml-node+s465427n5783203h56@n5.nabble.com> wrote:
> 
> > karaf.log <http://camel.465427.n5.nabble.com/file/n5783203/karaf.log>
> >
> > Camel 2.16.3
> > ActiveMQ 5.13.3
> >
> > Same four lines. Notice how it's not installing Spring
> > 4.1.7.RELEASE_2/4.2.5.RELEASE_1 stuff
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> > http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783203.html
> > To start a new topic under Camel - Users, email
> > ml-node+s465427n465428h31@n5.nabble.com
> > To unsubscribe from Camel - Users, click here
> > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> > .
> > NAML
> > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
> 
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783204.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



Re: Installation in Karaf fails since 2.17

Posted by souciance <so...@gmail.com>.
Hmm, it seems to complain about parsing the file:

resource[file:/opt/apache-karaf-4.0.5/etc/activemq.xml

Do you check that the file looks correct and all the settings there
are as expected?



On Sat, May 28, 2016 at 5:30 PM, djBo [via Camel] <
ml-node+s465427n5783203h56@n5.nabble.com> wrote:

> karaf.log <http://camel.465427.n5.nabble.com/file/n5783203/karaf.log>
>
> Camel 2.16.3
> ActiveMQ 5.13.3
>
> Same four lines. Notice how it's not installing Spring
> 4.1.7.RELEASE_2/4.2.5.RELEASE_1 stuff
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783203.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783204.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by djBo <ro...@gmail.com>.
karaf.log <http://camel.465427.n5.nabble.com/file/n5783203/karaf.log>  

Camel 2.16.3 
ActiveMQ 5.13.3

Same four lines. Notice how it's not installing Spring
4.1.7.RELEASE_2/4.2.5.RELEASE_1 stuff 



--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783203.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by djBo <ro...@gmail.com>.
karaf.log <http://camel.465427.n5.nabble.com/file/n5783202/karaf.log>  

Camel 2.17.0
ActiveMQ 5.13.3

I only executed the four lines (add-repo/install broker/camel)



--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783202.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by souciance <so...@gmail.com>.
Can you share the Karaf logs after the camel-activemq install?

On Sat, May 28, 2016 at 4:35 PM, djBo [via Camel] <
ml-node+s465427n5783200h63@n5.nabble.com> wrote:

> souciance wrote
> I cannot speak about ActiveMQ but I have installed camel 2.17.0 in Karaf
> 4.0.5 and added camel components without any issues.
>
> I agree... Installing either Camel OR ActiveMQ with the latest version is
> no problem. It is the combination of having both that's causing problems.
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783200.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783201.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by djBo <ro...@gmail.com>.
souciance wrote
> I cannot speak about ActiveMQ but I have installed camel 2.17.0 in Karaf
> 4.0.5 and added camel components without any issues.

I agree... Installing either Camel OR ActiveMQ with the latest version is no
problem. It is the combination of having both that's causing problems.



--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783200.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Installation in Karaf fails since 2.17

Posted by souciance <so...@gmail.com>.
I cannot speak about ActiveMQ but I have installed camel 2.17.0 in Karaf
4.0.5 and added camel components without any issues.

On Sat, May 28, 2016 at 4:16 PM, djBo [via Camel] <
ml-node+s465427n5783198h1@n5.nabble.com> wrote:

> Hi,
>
> I wanted to share my latest experience installing Camel and ActiveMQ in
> Karaf.
>
> Karaf: 4.0.5
> ActiveMQ: 5.13.3
> Camel: Anything lower than 2.17.0!
>
> After creating a clean Ubuntu 16.04 installation with Oracle JDK8, I
> wanted to create a mini ESB using Karaf, ActiveMQ and Camel. I downloaded
> the lastest Karaf release from the site (4.0.5) and unpacked it under /opt.
> Then started it, and used the following to finalize the installation:
>
> feature:install http
> feature:install http-whiteboard
> feature:install webconsole
> ----
> feature:repo-add camel 2.16.3
> feature:repo-add activemq 5.13.3
> feature:install activemq-broker
> feature:install activemq-camel <-- fails for camel 2.17.0 and up
> ----
> feature:install camel-http camel-jackson camel-servlet
>
> At first, I was using camel 2.17.1, which kept failing searching for
> xbean. Then after some searching, someone claimed no issues using 2.16.1/
> 5.13.0. After trying this, I realized something must be up with either
> ActiveMQ or Camel, as this version combo works perfectly.
> After increasing the release versions one at a time, I came to the point
> where I wanted 2.17.0/5.13.3. This version combo fails to restart the
> broker due to complicated factors of various spring versions being
> installed. I was not able to fix these errors by hand :(
>
> The only conclusion I could make, is that since the Camel 2.17 release,
> something changed. After doing a diff between
> http://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/2.16.3/apache-camel-2.16.3-features.xml and
>
> http://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/2.17.0/apache-camel-2.17.0-features.xml,
> the biggest change that could be the culprit is the modification of the
> camel-spring-batch feature, now requiring a newer Spring.
>
> I also observe this when doing the actual installation with these
> versions, and notice three different versions of Spring are installed,
> which is not the case in the lastest 2.16 release.
>
> I personally do not know how to fix this for *my* current situation, or if
> a proper workaround exists. Glossing over the various Google mentions in
> this subject keeps revealing the developers being unable to reproduce the
> issue.
>
> With kind regards,
> Rory
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Installation-in-Karaf-fails-since-2-17-tp5783198p5783199.html
Sent from the Camel - Users mailing list archive at Nabble.com.