You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Fitzcaraldo <Br...@marlo.com.au> on 2012/04/30 06:38:02 UTC

karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

I’m trying to run the Camel OSGi blueprint example using karaf2.2.5, camel
2.9.0 and cxf 2.6.0.

I followed the instructions here: 
http://camel.apache.org/cxf-example-osgi-blueprint.html
http://camel.apache.org/cxf-example-osgi-blueprint.html 

jdk 1.6.0_25-b06

Fresh install of karaf. Copied jar.properties.cxf to jre.properties.
Restart.

I ran the commands in this sequence

features:addurl mvn:org.apache.cxf.karaf/apache-cxf/2.6.0/xml/features
features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features
features:install war
features:install cxf
features:install camel-jaxb
features:install camel-blueprint
features:install camel-cxf

When I installed the war, I noticed (in the webconsole) that apache-cxf
v2.5.1 had been added as a repo (as well as 2.6.0).  Is there a dependency?

All then goes well until features:install camel-cxf which fails with:

Error executing command: Could not start bundle
mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/1.0.7 in feature(s)
cxf-war-java5-2.5.1: Activator start error in bundle
org.ops4j.pax.web.pax-web-extender-whiteboard [173].

Looks like it’s trying to load a pax-web-extender-whiteboard V1.0.7 from a
cxf 2.5.1 jar.  V1.0.8 is already installed.

Should I raise a jira?



--
View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi guys,

As reminder, CXF 2.6/Camel 2.9 requires at least Karaf 2.2.6 due to the 
introduction of a new feature provided by Karaf.
More over, due to an issue on ConfigAdmin/FileInstall, I heavily advice 
to use Karaf 2.2.7.

Regards
JB

On 04/30/2012 08:50 AM, Fitzcaraldo wrote:
> Good call.
>
> With karaf v2.2.7, cxf v2.6.0 and camel v2.9.2 - it installs cleanly.   This
> time the war didn't pull in an earlier version of cxf.
>
> Thanks
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060p5675234.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Claus Ibsen <cl...@gmail.com>.
Sounds like you build you own ServiceMix :)

On Tue, May 1, 2012 at 6:33 AM, Fitzcaraldo
<Br...@marlo.com.au> wrote:
> Dan
>
> Did as you suggested and it installed cleanly.
>
> Sequence
>
> features:addUrl mvn:org.apache.activemq/activemq-karaf/5.5.1/xml/features
> features:addurl mvn:org.apache.cxf.karaf/apache-cxf/2.6.0/xml/features
> features:addurl mvn:org.apache.camel.karaf/apache-camel/2.9.2/xml/features
>
> features:install activemq-spring
> features:install webconsole
>
> features:install war
> features:install cxf
> features:install camel
>
> install -s mvn:org.apache.activemq/activemq-camel/5.5.1
>
> features:install camel-jms
> features:install camel-jaxb
> features:install camel-blueprint
> features:install camel-cxf
>
> After I installed webconsole I notice that something (suspect ActiveMQ) had
> pulled in cxf 2.5.2. But didn't seem to matter.
>
> Thanks
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060p5677424.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Fitzcaraldo <Br...@marlo.com.au>.
Dan

Did as you suggested and it installed cleanly.

Sequence

features:addUrl mvn:org.apache.activemq/activemq-karaf/5.5.1/xml/features
features:addurl mvn:org.apache.cxf.karaf/apache-cxf/2.6.0/xml/features
features:addurl mvn:org.apache.camel.karaf/apache-camel/2.9.2/xml/features

features:install activemq-spring
features:install webconsole

features:install war
features:install cxf
features:install camel

install -s mvn:org.apache.activemq/activemq-camel/5.5.1

features:install camel-jms
features:install camel-jaxb
features:install camel-blueprint
features:install camel-cxf

After I installed webconsole I notice that something (suspect ActiveMQ) had
pulled in cxf 2.5.2. But didn't seem to matter.

Thanks


--
View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060p5677424.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Fitzcaraldo <Br...@marlo.com.au>.
Trying that now...

Thanks Dan.  Much appreciated.

Do you guys ever sleep?

--
View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060p5677295.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Daniel Kulp <dk...@apache.org>.
May be ordering....

Try:
1) Karaf 2.2.7 with the jre.properties.cxf
2) Install the ActiveMQ 5.5.1 feature.xml
3) Install the CXF 2.6.0 feature.xml
4) Install the Camel 2.9.2 feature.xml

Then install the various features themselves, likely in roughly the same 
order.  ActiveMQ first, CXF next, then Camel.

Dan


On Monday, April 30, 2012 05:54:39 PM Fitzcaraldo wrote:
> I'm now trying to add ActiveMQ 5.5.1 to the above container (karaf 2.2.7,
> cxf 2.6.0, camel 2.9.2)
> 
> features:addUrl mvn:org.apache.activemq/activemq-karaf/5.5.1/xml/features
> 
> then
> 
> features:install activemq-spring
> 
> This fails with the message:
> 
> Error executing command: Could not start bundle
> mvn:org.apache.activemq/activemq-spring/5.5.1 in feature(s)
> activemq-spring-5.5.1: Unresolved constraint in bundle
> org.apache.activemq.activemq-spring [199]: Unable to resolve 199.0:
> missing requirement [199.0] package;
> (&(package=org.apache.activemq)(version>=5.5.0)(!(version>=6.0.0)))
> 
> As well as the dependency in AMQ V5.5.0 shown this step also pulls in cxf
> 2.5.2 again!
> 
> Is there another dependency I'm not aware of?
> 
> Can someone recommend a combination of the 4 products that work together.
> 
> 
> 
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-i
> nstall-problem-tp5675060p5677249.html Sent from the Camel - Users mailing
> list archive at Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Fitzcaraldo <Br...@marlo.com.au>.
I'm now trying to add ActiveMQ 5.5.1 to the above container (karaf 2.2.7, cxf
2.6.0, camel 2.9.2)

features:addUrl mvn:org.apache.activemq/activemq-karaf/5.5.1/xml/features

then

features:install activemq-spring

This fails with the message:

Error executing command: Could not start bundle
mvn:org.apache.activemq/activemq-spring/5.5.1 in feature(s)
activemq-spring-5.5.1: Unresolved constraint in bundle
org.apache.activemq.activemq-spring [199]: Unable to resolve 199.0: missing
requirement [199.0] package;
(&(package=org.apache.activemq)(version>=5.5.0)(!(version>=6.0.0)))

As well as the dependency in AMQ V5.5.0 shown this step also pulls in cxf
2.5.2 again!

Is there another dependency I'm not aware of?

Can someone recommend a combination of the 4 products that work together.



--
View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060p5677249.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Daniel Kulp <da...@kulp.com>.
On Sunday, April 29, 2012 11:50:05 PM Fitzcaraldo wrote:
> Good call.
> 
> With karaf v2.2.7, cxf v2.6.0 and camel v2.9.2 - it installs cleanly.  
> This time the war didn't pull in an earlier version of cxf.

If using CXF 2.6.0, you really need Camel 2.9.1 or newer (2.9.2 obviously 
preferred).    2.9.0 was release way too long before 2.6.0 was really 
"ready" and thus was not tested with 2.6.0.   2.9.2 is definitely known to 
work well with CXF 2.6.0.  

Dan


> 
> Thanks
> 
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-i
> nstall-problem-tp5675060p5675234.html Sent from the Camel - Users mailing
> list archive at Nabble.com.
-- 
Daniel Kulp
dan@kulp.com
http://dankulp.com/blog


Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Fitzcaraldo <Br...@marlo.com.au>.
Good call.

With karaf v2.2.7, cxf v2.6.0 and camel v2.9.2 - it installs cleanly.   This
time the war didn't pull in an earlier version of cxf.

Thanks

--
View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060p5675234.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: karaf 2.2.5, cxf 2.6.0 and camel 2.9.0 install problem

Posted by Christian Schneider <ch...@die-schneider.net>.
Can you try if this still happens with the new versions?

Karaf 2.2.7
Camel 2.9.2
CXF 2.6.0

Christian

Am 30.04.2012 06:38, schrieb Fitzcaraldo:
> I’m trying to run the Camel OSGi blueprint example using karaf2.2.5, camel
> 2.9.0 and cxf 2.6.0.
>
> I followed the instructions here:
> http://camel.apache.org/cxf-example-osgi-blueprint.html
> http://camel.apache.org/cxf-example-osgi-blueprint.html
>
> jdk 1.6.0_25-b06
>
> Fresh install of karaf. Copied jar.properties.cxf to jre.properties.
> Restart.
>
> I ran the commands in this sequence
>
> features:addurl mvn:org.apache.cxf.karaf/apache-cxf/2.6.0/xml/features
> features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features
> features:install war
> features:install cxf
> features:install camel-jaxb
> features:install camel-blueprint
> features:install camel-cxf
>
> When I installed the war, I noticed (in the webconsole) that apache-cxf
> v2.5.1 had been added as a repo (as well as 2.6.0).  Is there a dependency?
>
> All then goes well until features:install camel-cxf which fails with:
>
> Error executing command: Could not start bundle
> mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/1.0.7 in feature(s)
> cxf-war-java5-2.5.1: Activator start error in bundle
> org.ops4j.pax.web.pax-web-extender-whiteboard [173].
>
> Looks like it’s trying to load a pax-web-extender-whiteboard V1.0.7 from a
> cxf 2.5.1 jar.  V1.0.8 is already installed.
>
> Should I raise a jira?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/karaf-2-2-5-cxf-2-6-0-and-camel-2-9-0-install-problem-tp5675060.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


-- 

Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com