Re: ActiveMQ and Camel 2.17.x on Karaf

2017-01-23 Thread Krzysztof Sobkowiak
Embedding xbean-spring bundle into activemq-osgi solves the problem with Camel 
2.17.x and 2.18.x. I have created an Issue in ActiveQM (AMQ-6576) and a pull 
request with the fix. Hope it will solve the problem (and make no new problems 
:-) ). I have tested the modified ActiveQM with ServiceMix (manually and 
itests) as well as a smoke test to be sure this change didn't make any new 
errors.

Kindly regards
Krzysztof

On 24.01.2017 00:48, Krzysztof Sobkowiak wrote:
> Hi
>
> I have performed some analysis for 2.17.5 (for 2.18.x problem looks more 
> complicated)
>
> karaf@root()> feature:repo-add camel 2.17.5
> Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.17.5/xml/features
> karaf@root()> feature:repo-add activemq 5.14.3
> Adding feature url mvn:org.apache.activemq/activemq-karaf/5.14.3/xml/features
>
> And now:
>
> karaf@root()> feature:install -v activemq-camel
> Adding features: activemq-camel/[5.14.3,5.14.3]
> Changes to perform:
>   Region: root
> Bundles to install:
> .
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.2.8.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.2.8.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.2.8.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.2.8.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/3.2.17.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.2.8.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/3.2.17.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.2.8.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/3.2.17.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.2.8.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.2.8.RELEASE_1
>
> 2 versions of Spring are installed.
>
> Now:
>
> karaf@root()> list -t 0
> START LEVEL 100 , List Threshold: 0
> ID | State| Lvl | Version  | Name
> 
> 
> 69 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
> spring-aop
> 70 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
> spring-aop
> 71 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
> spring-beans
> 72 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
> spring-beans
> 73 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
> spring-context
> 74 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
> spring-context
> 75 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
> spring-context-support
> 76 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
> spring-context-support
> 77 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
> spring-core
> 78 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
> spring-core
> 79 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
> spring-expression
> 80 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
> spring-expression
> 81 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
> spring-jms
> 82 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
> spring-jms
> 83 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
> spring-tx
> 84 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
> spring-tx
>
> And when you examine the dependency tree of activemq-camel you can see 
> following (excuse me long listings):
>
> karaf@root()> bundle:tree-show 52
> Bundle org.apache.activemq.activemq-camel [52] is currently ACTIVE
>
> org.apache.activemq.activemq-camel [52]
> +- org.apache.servicemix.bundles.spring-core [77]
> |  +- org.ops4j.pax.logging.pax-logging-api [1]
> | +- org.apache.karaf.services.eventadmin [6]
> |+- org.apache.felix.configadmin [3]
> |+- org.apache.felix.metatype [5]
> +- 

Re: ActiveMQ and Camel 2.17.x on Karaf

2017-01-23 Thread Krzysztof Sobkowiak
Hi

I have performed some analysis for 2.17.5 (for 2.18.x problem looks more 
complicated)

karaf@root()> feature:repo-add camel 2.17.5
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.17.5/xml/features
karaf@root()> feature:repo-add activemq 5.14.3
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.14.3/xml/features

And now:

karaf@root()> feature:install -v activemq-camel
Adding features: activemq-camel/[5.14.3,5.14.3]
Changes to perform:
  Region: root
Bundles to install:
.
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.2.8.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.2.8.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.2.8.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.2.8.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/3.2.17.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.2.8.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/3.2.17.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.2.8.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/3.2.17.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.2.8.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.2.8.RELEASE_1

2 versions of Spring are installed.

Now:

karaf@root()> list -t 0
START LEVEL 100 , List Threshold: 0
ID | State| Lvl | Version  | Name


69 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
spring-aop
70 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
spring-aop
71 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
spring-beans
72 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
spring-beans
73 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
spring-context
74 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
spring-context
75 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
spring-context-support
76 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
spring-context-support
77 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
spring-core
78 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
spring-core
79 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
spring-expression
80 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
spring-expression
81 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
spring-jms
82 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
spring-jms
83 | Active   |  30 | 3.2.17.RELEASE_1 | Apache ServiceMix :: Bundles :: 
spring-tx
84 | Active   |  30 | 4.2.8.RELEASE_1  | Apache ServiceMix :: Bundles :: 
spring-tx

And when you examine the dependency tree of activemq-camel you can see 
following (excuse me long listings):

karaf@root()> bundle:tree-show 52
Bundle org.apache.activemq.activemq-camel [52] is currently ACTIVE

org.apache.activemq.activemq-camel [52]
+- org.apache.servicemix.bundles.spring-core [77]
|  +- org.ops4j.pax.logging.pax-logging-api [1]
| +- org.apache.karaf.services.eventadmin [6]
|+- org.apache.felix.configadmin [3]
|+- org.apache.felix.metatype [5]
+- org.apache.servicemix.bundles.spring-jms [81]
|  +- org.apache.servicemix.bundles.spring-core [77]
|  +- org.apache.servicemix.bundles.spring-beans [71]
|  |  +- org.apache.servicemix.bundles.spring-core [77]
|  |  +- org.ops4j.pax.logging.pax-logging-api [1]
|  +- org.apache.servicemix.bundles.spring-aop [69]
|  |  +- org.apache.servicemix.bundles.spring-core [77]
|  |  +- org.apache.servicemix.bundles.spring-beans [71]
|  |  +- org.apache.servicemix.bundles.aopalliance [67]
|  |  +- org.apache.commons.pool [61]
|  |  +- org.ops4j.pax.logging.pax-logging-api [1]
|  +- org.apache.servicemix.bundles.spring-context [73]
|  |  +- org.apache.servicemix.bundles.spring-expression [79]
|  |  | 

Re: ActiveMQ and Camel 2.17.x on Karaf

2017-01-18 Thread Sobkowiak Krzysztof
Btw, this trick with camel-cxf doesn't help with Camel 2.18.x. I think, there 
was a change in Camel 2.17.3 which helped with this problem (but not completely 
yet), but the change is not available in 2.18.x (I tried current snapshot and 
it didn't help too).

It looks like this change has helped in 2.17.3 
https://github.com/apache/camel/commit/284cc6780de1e32468ef2ae50ad357a444e79da1 
(CAMEL-10153), which introduces [3.2,5) as version range for spring in 
camel-cxf. In 2.18.x there is still used the version range [4.1,5)

Regards
Krzysztof

On 19.01.2017 01:17, Krzysztof Sobkowiak wrote:
> My mistake. This problem still happens in the sample steps below - the 
> exception still occurs after Karaf restart and broker doesn't start.
> But adding camel-cxf seems to fix this problem
>
> feature:install camel camel-blueprint camel-jms camel-cxf activemq-camel 
> activemq-broker-noweb activemq-blueprint
>
> Kindly regards
> Krzysztof
>
>
> On 14.01.2017 22:55, Krzysztof Sobkowiak wrote:
>> Hi
>>
>> I could successfully install Camel 2.17.3 and ActiveMQ 5.14.3 on Karaf 4.0.8 
>> (also 4.0.7):
>>
>>
>> __ __   
>>/ //_/ __ _/ __/ 
>>   / ,<  / __ `/ ___/ __ `/ /_   
>>  / /| |/ /_/ / /  / /_/ / __/   
>> /_/ |_|\__,_/_/   \__,_/_/
>>
>>   Apache Karaf (4.0.8)
>>
>> Hit '' for a list of available commands
>> and '[cmd] --help' for help on a specific command.
>> Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>
>> karaf@root()> feature:repo-add camel 2.17.3
>> Adding feature url 
>> mvn:org.apache.camel.karaf/apache-camel/2.17.3/xml/features
>> karaf@root()> feature:repo-add activemq 5.14.3
>> Adding feature url mvn:org.apache.activemq/activemq-karaf/5.14.3/xml/features
>> karaf@root()> feature:install camel camel-blueprint camel-jms activemq-camel 
>> activemq-broker-noweb activemq-blueprint
>> karaf@root()> activemq:list
>> brokerName = amq-broker
>>
>>
>> Kindly tegards
>> Krzysztof
>>
>> On 30.11.2016 14:11, IODB wrote:
>>> Can somebody refer me to the relevant Jira issue, so I can track its
>>> progress?
>>>
>>> Thanks
>>>
>>>
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)


Re: ActiveMQ and Camel 2.17.x on Karaf

2017-01-18 Thread Krzysztof Sobkowiak
My mistake. This problem still happens in the sample steps below - the 
exception still occurs after Karaf restart and broker doesn't start.
But adding camel-cxf seems to fix this problem

feature:install camel camel-blueprint camel-jms camel-cxf activemq-camel 
activemq-broker-noweb activemq-blueprint

Kindly regards
Krzysztof


On 14.01.2017 22:55, Krzysztof Sobkowiak wrote:
> Hi
>
> I could successfully install Camel 2.17.3 and ActiveMQ 5.14.3 on Karaf 4.0.8 
> (also 4.0.7):
>
>
> __ __   
>/ //_/ __ _/ __/ 
>   / ,<  / __ `/ ___/ __ `/ /_   
>  / /| |/ /_/ / /  / /_/ / __/   
> /_/ |_|\__,_/_/   \__,_/_/
>
>   Apache Karaf (4.0.8)
>
> Hit '' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()> feature:repo-add camel 2.17.3
> Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.17.3/xml/features
> karaf@root()> feature:repo-add activemq 5.14.3
> Adding feature url mvn:org.apache.activemq/activemq-karaf/5.14.3/xml/features
> karaf@root()> feature:install camel camel-blueprint camel-jms activemq-camel 
> activemq-broker-noweb activemq-blueprint
> karaf@root()> activemq:list
> brokerName = amq-broker
>
>
> Kindly tegards
> Krzysztof
>
> On 30.11.2016 14:11, IODB wrote:
>> Can somebody refer me to the relevant Jira issue, so I can track its
>> progress?
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context: 
>> http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048863.html
>> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>
> -- 
> Krzysztof Sobkowiak (@ksobkowiak)
>
> JEE & OSS Architect, Integration Architect
> Apache Software Foundation Member (http://apache.org/)
> Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
> Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)

-- 
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)


Re: ActiveMQ and Camel 2.17.x on Karaf

2017-01-14 Thread Krzysztof Sobkowiak
Hi

I could successfully install Camel 2.17.3 and ActiveMQ 5.14.3 on Karaf 4.0.8 
(also 4.0.7):


__ __   
   / //_/ __ _/ __/ 
  / ,<  / __ `/ ___/ __ `/ /_   
 / /| |/ /_/ / /  / /_/ / __/   
/_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (4.0.8)

Hit '' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> feature:repo-add camel 2.17.3
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.17.3/xml/features
karaf@root()> feature:repo-add activemq 5.14.3
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.14.3/xml/features
karaf@root()> feature:install camel camel-blueprint camel-jms activemq-camel 
activemq-broker-noweb activemq-blueprint
karaf@root()> activemq:list
brokerName = amq-broker


Kindly tegards
Krzysztof

On 30.11.2016 14:11, IODB wrote:
> Can somebody refer me to the relevant Jira issue, so I can track its
> progress?
>
> Thanks
>
>
>
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048863.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-30 Thread IODB
Can somebody refer me to the relevant Jira issue, so I can track its
progress?

Thanks



--
View this message in context: 
http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048863.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-27 Thread Jean-Baptiste Onofré

Hi Krzysztof

I gonna work on this. Thanks !

Regards
JB

On 11/27/2016 04:10 PM, Krzysztof Sobkowiak wrote:

Additional observation:

Installing the activemq components leads to installation of 3 versions of 
Spring bundles

la
---
 96 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-aop
 97 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-aop
 98 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-aop
 99 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-beans
100 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-beans
101 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-beans
102 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-context
103 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-context
104 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-context
105 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-context-support
106 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-context-support
107 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-context-support
108 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-core
109 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-core
110 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-core
111 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-expression
112 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-expression
113 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-expression
114 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-jms
115 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-jms
116 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-tx
117 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-tx

Regards
Krzysztof


On 27.11.2016 15:58, Krzysztof Sobkowiak wrote:

I have just added following entry to activemq-osgi pom file in current ActiveMQ 
master

org.apache.xbean.spring.context.v2;resolution:=optional;version="[3.13,5)",

The problem still exists, but everything looks ok with the wiring:

karaf@root()> exports | grep org.apache.xbean.spring.context.v2
org.apache.xbean.spring.context.v2 | 4.2.0  
| 123 | org.apache.xbean.spring
org.apache.xbean.spring.context.v2c| 4.2.0  
| 123 | org.apache.xbean.spring

karaf@root()> imports | grep org.apache.xbean.spring.context.v2
org.apache.xbean.spring.context.v2 | [3.13.0,5.0.0) 
| resolved   | 66  | org.apache.activemq.activemq-osgi

karaf@root()> bundle:classes 123 | grep XBeanNamespaceHandler
org/apache/xbean/spring/context/v2/XBeanNamespaceHandler.class
org/apache/xbean/spring/context/v2/XBeanNamespaceHandlerResolver.class
org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler$1.class
org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.class


karaf@root()> headers 66

activemq-osgi (66)
--

.

Import-Package =
com.fasterxml.jackson.annotation;resolution:=optional;version="[2.6,3)",
com.fasterxml.jackson.databind;resolution:=optional;version="[2.6,3)",

com.fasterxml.jackson.databind.annotation;resolution:=optional;version="[2.6,3)",

org.apache.tools.ant;resolution:=optional,
org.apache.xbean.spring.context;resolution:=optional;version="[3.13,5)",

org.apache.xbean.spring.context.impl;resolution:=optional;version="[3.13,5)",
org.apache.xbean.spring.context.v2;resolution:=optional;version="[3.13,5)",
org.apache.zookeeper;resolution:=optional;version="[3.4,4)",
org.apache.zookeeper.data;resolution:=optional;version="[3.4,4)",



karaf@root()> headers 123

Apache XBean :: Spring (123)

.
Export-Package =
...
org.apache.xbean.spring.context.v2;
uses:="org.apache.xbean.spring.context,
org.springframework.beans,
org.springframework.beans.factory,
org.springframework.beans.factory.config,
org.springframework.beans.factory.support,
org.springframework.beans.factory.xml,

Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-27 Thread Krzysztof Sobkowiak
Additional observation:

Installing the activemq components leads to installation of 3 versions of 
Spring bundles

la
---
 96 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-aop
 97 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-aop
 98 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-aop
 99 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-beans
100 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-beans
101 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-beans
102 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-context
103 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-context
104 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-context
105 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-context-support
106 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-context-support
107 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-context-support
108 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-core
109 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-core
110 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-core
111 | Active   |  30 | 3.2.17.RELEASE_1   | Apache ServiceMix 
:: Bundles :: spring-expression
112 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-expression
113 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-expression
114 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-jms
115 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-jms
116 | Active   |  30 | 4.1.7.RELEASE_2| Apache ServiceMix 
:: Bundles :: spring-tx
117 | Active   |  30 | 4.2.5.RELEASE_1| Apache ServiceMix 
:: Bundles :: spring-tx

Regards
Krzysztof


On 27.11.2016 15:58, Krzysztof Sobkowiak wrote:
> I have just added following entry to activemq-osgi pom file in current 
> ActiveMQ master
>
> org.apache.xbean.spring.context.v2;resolution:=optional;version="[3.13,5)",
>
> The problem still exists, but everything looks ok with the wiring:
>
> karaf@root()> exports | grep org.apache.xbean.spring.context.v2
> org.apache.xbean.spring.context.v2 | 4.2.0
>   | 123 | org.apache.xbean.spring
> org.apache.xbean.spring.context.v2c| 4.2.0
>   | 123 | org.apache.xbean.spring
>
> karaf@root()> imports | grep org.apache.xbean.spring.context.v2
> org.apache.xbean.spring.context.v2 | 
> [3.13.0,5.0.0) | resolved   | 66  | org.apache.activemq.activemq-osgi
>
> karaf@root()> bundle:classes 123 | grep XBeanNamespaceHandler
> org/apache/xbean/spring/context/v2/XBeanNamespaceHandler.class
> org/apache/xbean/spring/context/v2/XBeanNamespaceHandlerResolver.class
> org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler$1.class
> org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.class
>
>
> karaf@root()> headers 66
>
> activemq-osgi (66)
> --
>
> .
>
> Import-Package =
> com.fasterxml.jackson.annotation;resolution:=optional;version="[2.6,3)",
> com.fasterxml.jackson.databind;resolution:=optional;version="[2.6,3)",
> 
> com.fasterxml.jackson.databind.annotation;resolution:=optional;version="[2.6,3)",
> 
> org.apache.tools.ant;resolution:=optional,
> org.apache.xbean.spring.context;resolution:=optional;version="[3.13,5)",
> 
> org.apache.xbean.spring.context.impl;resolution:=optional;version="[3.13,5)",
> 
> org.apache.xbean.spring.context.v2;resolution:=optional;version="[3.13,5)",
> org.apache.zookeeper;resolution:=optional;version="[3.4,4)",
> org.apache.zookeeper.data;resolution:=optional;version="[3.4,4)",
>
>
>
> karaf@root()> headers 123
>
> Apache XBean :: Spring (123)
> 
> .
> Export-Package =
> ...
> org.apache.xbean.spring.context.v2;
> uses:="org.apache.xbean.spring.context,
> org.springframework.beans,
> org.springframework.beans.factory,
> org.springframework.beans.factory.config,
> org.springframework.beans.factory.support,
> org.springframework.beans.factory.xml,
> 

Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-27 Thread Krzysztof Sobkowiak
I have just added following entry to activemq-osgi pom file in current ActiveMQ 
master

org.apache.xbean.spring.context.v2;resolution:=optional;version="[3.13,5)",

The problem still exists, but everything looks ok with the wiring:

karaf@root()> exports | grep org.apache.xbean.spring.context.v2
org.apache.xbean.spring.context.v2 | 4.2.0  
| 123 | org.apache.xbean.spring
org.apache.xbean.spring.context.v2c| 4.2.0  
| 123 | org.apache.xbean.spring

karaf@root()> imports | grep org.apache.xbean.spring.context.v2
org.apache.xbean.spring.context.v2 | [3.13.0,5.0.0) 
| resolved   | 66  | org.apache.activemq.activemq-osgi

karaf@root()> bundle:classes 123 | grep XBeanNamespaceHandler
org/apache/xbean/spring/context/v2/XBeanNamespaceHandler.class
org/apache/xbean/spring/context/v2/XBeanNamespaceHandlerResolver.class
org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler$1.class
org/apache/xbean/spring/context/v2c/XBeanNamespaceHandler.class


karaf@root()> headers 66

activemq-osgi (66)
--

.

Import-Package =
com.fasterxml.jackson.annotation;resolution:=optional;version="[2.6,3)",
com.fasterxml.jackson.databind;resolution:=optional;version="[2.6,3)",

com.fasterxml.jackson.databind.annotation;resolution:=optional;version="[2.6,3)",

org.apache.tools.ant;resolution:=optional,
org.apache.xbean.spring.context;resolution:=optional;version="[3.13,5)",

org.apache.xbean.spring.context.impl;resolution:=optional;version="[3.13,5)",
org.apache.xbean.spring.context.v2;resolution:=optional;version="[3.13,5)",
org.apache.zookeeper;resolution:=optional;version="[3.4,4)",
org.apache.zookeeper.data;resolution:=optional;version="[3.4,4)",



karaf@root()> headers 123

Apache XBean :: Spring (123)

.
Export-Package =
...
org.apache.xbean.spring.context.v2;
uses:="org.apache.xbean.spring.context,
org.springframework.beans,
org.springframework.beans.factory,
org.springframework.beans.factory.config,
org.springframework.beans.factory.support,
org.springframework.beans.factory.xml,
org.springframework.context,
org.springframework.core.io,
org.w3c.dom";
version=4.2,


So, the package seems to be correctly exported and wired to activemq-osgi. I 
cannot see any other exceptions in log. I tried to refresh/restart/re-resolve 
the bundles and the same effect. Altough the package is correctly wired and 
contains the necessery class, the class cannot be found in the activemq-osgi 
classpath.

One additional observation, maybe it helps - bundle:requirements doesn't show 
xbean as requirement for activemq-osgi.

karaf@root()> bundle:requirements 66 | grep org.apache.xbean
karaf@root()>




Kindly regards
Krzysztof
 









 

On 27.11.2016 14:09, Jean-Baptiste Onofré wrote:
> Hi Krzysztof
>
> yup, it sounds like a missing import.
>
> I gonna take a look later today.
>
> Regards
> JB
>
> On 11/27/2016 01:54 PM, Krzysztof Sobkowiak wrote:
>> Hi
>>
>> I have tested it yesterday again on Karaf 4.0.7 with Camel 2.17.3 and 
>> ActiveMQ 5.14.1 and I can install activemq-broker an activemq-camel. But 
>> after restart I get following error
>>
>> Caused by: java.lang.ClassNotFoundException: 
>> org.apache.xbean.spring.context.v2.XBeanNamespaceHandler not found by 
>> org.apache.activemq.activemq-osgi [62]
>> at 
>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:]
>> at 
>> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:]
>> at 
>> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)[org.apache.felix.framework-5.4.0.jar:]
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_111]
>> at 
>> org.springframework.util.ClassUtils.forName(ClassUtils.java:250)[95:org.apache.servicemix.bundles.spring-core:4.2.5.RELEASE_1]
>> at 
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:125)[89:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>>
>> I think, addidng import for org.apache.xbean.spring.context.v2 in 
>> activemq-osgi should help (at least as a workaround)
>>
>> Kindly regards
>> Krzysztof
>>
>>
>>
>> On 27.11.2016 12:24, Jean-Baptiste Onofré wrote:
>>> Hi Christian,
>>>
>>> Please, ping me tomorrow we can sync/work together on that.
>>>
>>> Regards
>>> JB
>>>
>>> On 11/27/2016 09:05 AM, Christian Schneider wrote:
 My fixes were only touching activemq blueprint. I did not check the
 ActiveMQ spring support.
 This might be very relevant for TESB though. I 

Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-27 Thread IODB
Indeed, the problem still occurs with ActiveMQ 5.15.0-SNAPSHOT.
Interestingly enough, it looks like the error only occurs when restarting
after camel-jms is installed.

I'd be perfectly happy using activemq blueprint, but couldn't find much
documentation about how to set it up.
Also, I've tried using camel-sjms instead of camel-jms. The broker starts up
without errors, but unfortunately camel-sjms doesn't seem to support
retrieving the destinationName from a message header (like
'CamelJmsDestinationName' in camel-jms) , which is a feature I can't live
without.




--
View this message in context: 
http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048829.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-27 Thread Jean-Baptiste Onofré

Hi Krzysztof

yup, it sounds like a missing import.

I gonna take a look later today.

Regards
JB

On 11/27/2016 01:54 PM, Krzysztof Sobkowiak wrote:

Hi

I have tested it yesterday again on Karaf 4.0.7 with Camel 2.17.3 and ActiveMQ 
5.14.1 and I can install activemq-broker an activemq-camel. But after restart I 
get following error

Caused by: java.lang.ClassNotFoundException: 
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler not found by 
org.apache.activemq.activemq-osgi [62]
at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:]
at 
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:]
at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)[org.apache.felix.framework-5.4.0.jar:]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_111]
at 
org.springframework.util.ClassUtils.forName(ClassUtils.java:250)[95:org.apache.servicemix.bundles.spring-core:4.2.5.RELEASE_1]
at 
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:125)[89:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]

I think, addidng import for org.apache.xbean.spring.context.v2 in activemq-osgi 
should help (at least as a workaround)

Kindly regards
Krzysztof



On 27.11.2016 12:24, Jean-Baptiste Onofré wrote:

Hi Christian,

Please, ping me tomorrow we can sync/work together on that.

Regards
JB

On 11/27/2016 09:05 AM, Christian Schneider wrote:

My fixes were only touching activemq blueprint. I did not check the
ActiveMQ spring support.
This might be very relevant for TESB though. I will look into it tomorrow.

Christian


2016-11-27 6:18 GMT+01:00 Jean-Baptiste Onofré :


Hi,

Christian did some fixes recently. Did you check with a ActiveMQ SNAPSHOT ?

Regards
JB


On 11/26/2016 09:44 PM, IODB wrote:


Issue still exists with ActiveMQ 5.14.1 - Camel 2.18.0 - Karaf 4.0.7



--
View this message in context: http://karaf.922171.n3.nabble.
com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048826.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.



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











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


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-27 Thread Krzysztof Sobkowiak
Hi

I have tested it yesterday again on Karaf 4.0.7 with Camel 2.17.3 and ActiveMQ 
5.14.1 and I can install activemq-broker an activemq-camel. But after restart I 
get following error

Caused by: java.lang.ClassNotFoundException: 
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler not found by 
org.apache.activemq.activemq-osgi [62]
at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:]
at 
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:]
at 
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)[org.apache.felix.framework-5.4.0.jar:]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_111]
at 
org.springframework.util.ClassUtils.forName(ClassUtils.java:250)[95:org.apache.servicemix.bundles.spring-core:4.2.5.RELEASE_1]
at 
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:125)[89:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]

I think, addidng import for org.apache.xbean.spring.context.v2 in activemq-osgi 
should help (at least as a workaround)

Kindly regards
Krzysztof



On 27.11.2016 12:24, Jean-Baptiste Onofré wrote:
> Hi Christian,
>
> Please, ping me tomorrow we can sync/work together on that.
>
> Regards
> JB
>
> On 11/27/2016 09:05 AM, Christian Schneider wrote:
>> My fixes were only touching activemq blueprint. I did not check the
>> ActiveMQ spring support.
>> This might be very relevant for TESB though. I will look into it tomorrow.
>>
>> Christian
>>
>>
>> 2016-11-27 6:18 GMT+01:00 Jean-Baptiste Onofré :
>>
>>> Hi,
>>>
>>> Christian did some fixes recently. Did you check with a ActiveMQ SNAPSHOT ?
>>>
>>> Regards
>>> JB
>>>
>>>
>>> On 11/26/2016 09:44 PM, IODB wrote:
>>>
 Issue still exists with ActiveMQ 5.14.1 - Camel 2.18.0 - Karaf 4.0.7



 -- 
 View this message in context: http://karaf.922171.n3.nabble.
 com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048826.html
 Sent from the Karaf - Dev mailing list archive at Nabble.com.


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

-- 
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Application Consultant @ Capgemini SSC (http://www.capgeminisoftware.pl/)


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-27 Thread Jean-Baptiste Onofré

Hi Christian,

Please, ping me tomorrow we can sync/work together on that.

Regards
JB

On 11/27/2016 09:05 AM, Christian Schneider wrote:

My fixes were only touching activemq blueprint. I did not check the
ActiveMQ spring support.
This might be very relevant for TESB though. I will look into it tomorrow.

Christian


2016-11-27 6:18 GMT+01:00 Jean-Baptiste Onofré :


Hi,

Christian did some fixes recently. Did you check with a ActiveMQ SNAPSHOT ?

Regards
JB


On 11/26/2016 09:44 PM, IODB wrote:


Issue still exists with ActiveMQ 5.14.1 - Camel 2.18.0 - Karaf 4.0.7



--
View this message in context: http://karaf.922171.n3.nabble.
com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048826.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.



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







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


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-27 Thread Christian Schneider
My fixes were only touching activemq blueprint. I did not check the
ActiveMQ spring support.
This might be very relevant for TESB though. I will look into it tomorrow.

Christian


2016-11-27 6:18 GMT+01:00 Jean-Baptiste Onofré :

> Hi,
>
> Christian did some fixes recently. Did you check with a ActiveMQ SNAPSHOT ?
>
> Regards
> JB
>
>
> On 11/26/2016 09:44 PM, IODB wrote:
>
>> Issue still exists with ActiveMQ 5.14.1 - Camel 2.18.0 - Karaf 4.0.7
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.
>> com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048826.html
>> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



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


Open Source Architect
http://www.talend.com



Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-26 Thread Jean-Baptiste Onofré

Hi,

Christian did some fixes recently. Did you check with a ActiveMQ SNAPSHOT ?

Regards
JB

On 11/26/2016 09:44 PM, IODB wrote:

Issue still exists with ActiveMQ 5.14.1 - Camel 2.18.0 - Karaf 4.0.7



--
View this message in context: 
http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048826.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.



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


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-11-26 Thread IODB
Issue still exists with ActiveMQ 5.14.1 - Camel 2.18.0 - Karaf 4.0.7 



--
View this message in context: 
http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4048826.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-07-18 Thread shoaibjdev
Hi jbonofre,

I'm also stuck with the same issue described by /Krzysztof Sobkowiak/. 
If you find time please look into it as it seems to be broken dependencies
and I fear to remove any version of spring which got installed bundled with
activemq-camel as it might broke my other bundles.





--
View this message in context: 
http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-on-Karaf-tp4046427p4047292.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


Re: ActiveMQ and Camel 2.17.x on Karaf

2016-06-13 Thread Jean-Baptiste Onofré

Hi Krzysztof

I will resume my work on it.

I will keep you posted soon.

Regards
JB

On 06/12/2016 09:34 PM, Krzysztof Sobkowiak wrote:

Hi

Any news about this problem?

Regards
Krzysztof

On 28.04.2016 21:21, Krzysztof Sobkowiak wrote:

It looks like it's again the problem with installing of multiple Spring 
versions while ActiveMQ bundles are already present in Karaf. Spring 
3.2.14.RELEASE_1 was already installed with the broker and now all other Spring 
versions are installed with activemq-camel feature.

karaf@root()> feature:install -v activemq-camel
Adding features: activemq-camel/[5.13.3,5.13.3]
Changes to perform:
   Region: root
 Bundles to update:
   org.apache.servicemix.bundles.jaxb-impl/2.2.11.1 with 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
 Bundles to install:
   mvn:org.apache.activemq/activemq-camel/5.13.3
   mvn:org.apache.camel/camel-blueprint/2.17.0
   mvn:org.apache.camel/camel-catalog/2.17.0
   mvn:org.apache.camel/camel-commands-core/2.17.0
   mvn:org.apache.camel/camel-core/2.17.0
   mvn:org.apache.camel/camel-jms/2.17.0
   mvn:org.apache.camel.karaf/camel-karaf-commands/2.17.0
   mvn:commons-codec/commons-codec/1.9
   mvn:commons-pool/commons-pool/1.6
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.1.7.RELEASE_2
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.2.5.RELEASE_1
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.1.7.RELEASE_2
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.2.5.RELEASE_1
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.1.7.RELEASE_2
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.2.5.RELEASE_1
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.1.7.RELEASE_2
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.2.5.RELEASE_1
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.1.7.RELEASE_2
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.2.5.RELEASE_1
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.1.7.RELEASE_2
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.2.5.RELEASE_1
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.1.7.RELEASE_2
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.2.5.RELEASE_1
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.1.7.RELEASE_2
   
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.2.5.RELEASE_1
   mvn:org.springframework/spring-aop/3.1.4.RELEASE
   mvn:org.springframework/spring-asm/3.1.4.RELEASE
   mvn:org.springframework/spring-beans/3.1.4.RELEASE
   mvn:org.springframework/spring-context/3.1.4.RELEASE
   mvn:org.springframework/spring-context-support/3.1.4.RELEASE
   mvn:org.springframework/spring-core/3.1.4.RELEASE
   mvn:org.springframework/spring-expression/3.1.4.RELEASE
   mvn:org.codehaus.woodstox/stax2-api/3.1.4
   mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
   ...

I have described something similar here 
http://karaf.922171.n3.nabble.com/Feature-spring-4-2-3-RELEASE-1-also-installs-bundles-from-Spring-version-3-1-4-when-activemq-is-instd-td4046213.html.

Regards
Krzysztof



On 28.04.2016 00:27, Krzysztof Sobkowiak wrote:

Hi

I have tried to install activemq-broker-noweb and activemq-camel features 
(5.13.2, 5.13.3 and current master) with Camel 2.17.0 on Karaf 4.0.5 but with 
no success:

karaf@root()> feature:repo-add camel 2.17.0
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.17.0/xml/features
karaf@root()> feature:repo-add activemq 5.13.2
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.13.2/xml/features
karaf@root()> feature:install activemq-broker-noweb
karaf@root()> activemq:list
brokerName = amq-broker

karaf@root()> feature:install activemq-camel
karaf@root()> activemq:list
karaf@root()>

The activemq-osgi bundle is refreshed and and cannot be resolved anymore

There is following entry in log

Caused by: java.lang.ClassNotFoundException: 
org.apache.xbean.spring.context.v2.XBeanNamespaceHandler not found by 
org.apache.activemq.activemq-osgi [61]
 at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:]
 at 
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:]
 at 

Re: ActiveMQ and Camel 2.17.x on Karaf

2016-06-12 Thread Krzysztof Sobkowiak
Hi

Any news about this problem?

Regards
Krzysztof

On 28.04.2016 21:21, Krzysztof Sobkowiak wrote:
> It looks like it's again the problem with installing of multiple Spring 
> versions while ActiveMQ bundles are already present in Karaf. Spring 
> 3.2.14.RELEASE_1 was already installed with the broker and now all other 
> Spring versions are installed with activemq-camel feature.
>
> karaf@root()> feature:install -v activemq-camel
> Adding features: activemq-camel/[5.13.3,5.13.3]
> Changes to perform:
>   Region: root
> Bundles to update:
>   org.apache.servicemix.bundles.jaxb-impl/2.2.11.1 with 
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
> Bundles to install:
>   mvn:org.apache.activemq/activemq-camel/5.13.3
>   mvn:org.apache.camel/camel-blueprint/2.17.0
>   mvn:org.apache.camel/camel-catalog/2.17.0
>   mvn:org.apache.camel/camel-commands-core/2.17.0
>   mvn:org.apache.camel/camel-core/2.17.0
>   mvn:org.apache.camel/camel-jms/2.17.0
>   mvn:org.apache.camel.karaf/camel-karaf-commands/2.17.0
>   mvn:commons-codec/commons-codec/1.9
>   mvn:commons-pool/commons-pool/1.6
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.1.7.RELEASE_2
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.2.5.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.1.7.RELEASE_2
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.2.5.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.1.7.RELEASE_2
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.2.5.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.1.7.RELEASE_2
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.2.5.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.1.7.RELEASE_2
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.2.5.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.1.7.RELEASE_2
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.2.5.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.1.7.RELEASE_2
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.2.5.RELEASE_1
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.1.7.RELEASE_2
>   
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.2.5.RELEASE_1
>   mvn:org.springframework/spring-aop/3.1.4.RELEASE
>   mvn:org.springframework/spring-asm/3.1.4.RELEASE
>   mvn:org.springframework/spring-beans/3.1.4.RELEASE
>   mvn:org.springframework/spring-context/3.1.4.RELEASE
>   mvn:org.springframework/spring-context-support/3.1.4.RELEASE
>   mvn:org.springframework/spring-core/3.1.4.RELEASE
>   mvn:org.springframework/spring-expression/3.1.4.RELEASE
>   mvn:org.codehaus.woodstox/stax2-api/3.1.4
>   mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
>   ...
>
> I have described something similar here 
> http://karaf.922171.n3.nabble.com/Feature-spring-4-2-3-RELEASE-1-also-installs-bundles-from-Spring-version-3-1-4-when-activemq-is-instd-td4046213.html.
>
> Regards
> Krzysztof
>
>
>
> On 28.04.2016 00:27, Krzysztof Sobkowiak wrote:
>> Hi
>>
>> I have tried to install activemq-broker-noweb and activemq-camel features 
>> (5.13.2, 5.13.3 and current master) with Camel 2.17.0 on Karaf 4.0.5 but 
>> with no success:
>>
>> karaf@root()> feature:repo-add camel 2.17.0
>> Adding feature url 
>> mvn:org.apache.camel.karaf/apache-camel/2.17.0/xml/features
>> karaf@root()> feature:repo-add activemq 5.13.2
>> Adding feature url mvn:org.apache.activemq/activemq-karaf/5.13.2/xml/features
>> karaf@root()> feature:install activemq-broker-noweb
>> karaf@root()> activemq:list
>> brokerName = amq-broker
>>
>> karaf@root()> feature:install activemq-camel
>> karaf@root()> activemq:list
>> karaf@root()>
>>
>> The activemq-osgi bundle is refreshed and and cannot be resolved anymore
>>
>> There is following entry in log
>>
>> Caused by: java.lang.ClassNotFoundException: 
>> org.apache.xbean.spring.context.v2.XBeanNamespaceHandler not found by 
>> org.apache.activemq.activemq-osgi [61]
>> at 
>> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:]
>> at 
>> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:]
>> at 
>> 

Re: ActiveMQ and Camel 2.17.x on Karaf 3.x

2016-05-20 Thread Jean-Baptiste Onofré

Hi,

As discussed on IRC, it's not surprising ;)

I have a change that need a couple of polish and test.

I will let you know when complete.

Regards
JB

On 05/19/2016 11:26 PM, Krzysztof Sobkowiak wrote:

Hi

Almost a month ago I have described a problem with ActiveMQ and Camel 2.17.x on 
Karaf 4.x 
(http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-on-Karaf-td4046427.html).
I tried the same tests on 3.0.6 (and 3.0.7-SNAPSHOT) with following result

karaf@root()> feature:repo-add camel 2.17.1
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.17.1/xml/features
karaf@root()> feature:repo-add activemq 5.12.3
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.12.3/xml/features
karaf@root()> feature:install activemq-broker-noweb
karaf@root()> activemq:list
brokerName = amq-broker
karaf@root()> feature:install -v activemq-camel
Installing feature activemq-camel 5.12.3
Found installed feature activemq-client 5.12.3
Installing feature camel-jms 2.17.1
Installing feature camel-core 2.17.1
Installing feature xml-specs-api 2.6.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.6.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/2.6.0
Installing bundle 
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/2.6.0
Installing bundle mvn:org.codehaus.woodstox/stax2-api/3.1.4
Installing bundle mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
Installing bundle mvn:org.apache.camel/camel-core/2.17.1
Installing bundle mvn:org.apache.camel/camel-catalog/2.17.1
Installing feature spring 4.2.4.RELEASE_1
Found installed bundle: org.apache.servicemix.bundles.aopalliance [82]
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.2.4.RELEASE_1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.2.4.RELEASE_1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.2.4.RELEASE_1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.2.4.RELEASE_1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.2.4.RELEASE_1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.2.4.RELEASE_1
Installing feature spring-jms 4.2.4.RELEASE_1
Installing feature spring-tx 4.2.4.RELEASE_1
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.2.4.RELEASE_1
Found installed bundle: org.apache.geronimo.specs.geronimo-jta_1.1_spec [67]
Found installed bundle: org.apache.geronimo.specs.geronimo-jms_1.1_spec [96]
Installing bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.2.4.RELEASE_1
Found installed bundle: org.apache.geronimo.specs.geronimo-jta_1.1_spec [67]
Installing bundle mvn:commons-pool/commons-pool/1.6
Found installed bundle: org.apache.geronimo.specs.geronimo-jms_1.1_spec [96]
Installing bundle mvn:org.apache.camel/camel-jms/2.17.1
Installing feature camel 2.17.1
Installing feature camel-blueprint 2.17.1
Installing bundle mvn:org.apache.camel/camel-blueprint/2.17.1
Installing bundle mvn:org.apache.activemq/activemq-camel/5.12.3
Error executing command: Can't install feature activemq-camel/0.0.0:
Could not start bundle mvn:org.apache.activemq/activemq-camel/5.12.3 in 
feature(s) activemq-camel-5.12.3: Uses constraint violation. Unable to resolve 
bundle revision org.apache.activemq.activemq-camel [144.0] because it is 
exposed to package 'org.springframework.core.io' from bundle revisions 
org.apache.servicemix.bundles.spring-core [83.0] and 
org.apache.servicemix.bundles.spring-core [133.0] via two dependency chains.

Chain 1:
   org.apache.activemq.activemq-camel [144.0]
 import: (osgi.wiring.package=org.springframework.core.io)
  |
 export: osgi.wiring.package=org.springframework.core.io
   org.apache.servicemix.bundles.spring-core [83.0]

Chain 2:
   org.apache.activemq.activemq-camel [144.0]
 import: 
(&(osgi.wiring.package=org.springframework.jms.connection)(version>=3.0.0)(!(version>=5.0.0)))
  |
 export: osgi.wiring.package=org.springframework.jms.connection; 
uses:=org.springframework.transaction.support
   org.apache.servicemix.bundles.spring-jms [140.0]
 import: 
(&(osgi.wiring.package=org.springframework.transaction.support)(version>=4.2.4.RELEASE)(!(version>=4.3.0)))
  |
 export: osgi.wiring.package=org.springframework.transaction.support; 
uses:=org.springframework.beans.factory
   org.apache.servicemix.bundles.spring-tx [139.0]
 import: 
(&(osgi.wiring.package=org.springframework.beans.factory)(version>=4.2.4.RELEASE)(!(version>=4.3.0)))
  |
 export: 

Re: ActiveMQ and Camel 2.17.x on Karaf

2016-04-28 Thread Krzysztof Sobkowiak
It looks like it's again the problem with installing of multiple Spring 
versions while ActiveMQ bundles are already present in Karaf. Spring 
3.2.14.RELEASE_1 was already installed with the broker and now all other Spring 
versions are installed with activemq-camel feature.

karaf@root()> feature:install -v activemq-camel
Adding features: activemq-camel/[5.13.3,5.13.3]
Changes to perform:
  Region: root
Bundles to update:
  org.apache.servicemix.bundles.jaxb-impl/2.2.11.1 with 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.6_1
Bundles to install:
  mvn:org.apache.activemq/activemq-camel/5.13.3
  mvn:org.apache.camel/camel-blueprint/2.17.0
  mvn:org.apache.camel/camel-catalog/2.17.0
  mvn:org.apache.camel/camel-commands-core/2.17.0
  mvn:org.apache.camel/camel-core/2.17.0
  mvn:org.apache.camel/camel-jms/2.17.0
  mvn:org.apache.camel.karaf/camel-karaf-commands/2.17.0
  mvn:commons-codec/commons-codec/1.9
  mvn:commons-pool/commons-pool/1.6
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.1.7.RELEASE_2
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/4.2.5.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.1.7.RELEASE_2
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/4.2.5.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.1.7.RELEASE_2
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/4.2.5.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.1.7.RELEASE_2
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/4.2.5.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.1.7.RELEASE_2
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/4.2.5.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.1.7.RELEASE_2
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/4.2.5.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.1.7.RELEASE_2
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/4.2.5.RELEASE_1
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.1.7.RELEASE_2
  
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/4.2.5.RELEASE_1
  mvn:org.springframework/spring-aop/3.1.4.RELEASE
  mvn:org.springframework/spring-asm/3.1.4.RELEASE
  mvn:org.springframework/spring-beans/3.1.4.RELEASE
  mvn:org.springframework/spring-context/3.1.4.RELEASE
  mvn:org.springframework/spring-context-support/3.1.4.RELEASE
  mvn:org.springframework/spring-core/3.1.4.RELEASE
  mvn:org.springframework/spring-expression/3.1.4.RELEASE
  mvn:org.codehaus.woodstox/stax2-api/3.1.4
  mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1
  ...

I have described something similar here 
http://karaf.922171.n3.nabble.com/Feature-spring-4-2-3-RELEASE-1-also-installs-bundles-from-Spring-version-3-1-4-when-activemq-is-instd-td4046213.html.

Regards
Krzysztof



On 28.04.2016 00:27, Krzysztof Sobkowiak wrote:
> Hi
>
> I have tried to install activemq-broker-noweb and activemq-camel features 
> (5.13.2, 5.13.3 and current master) with Camel 2.17.0 on Karaf 4.0.5 but with 
> no success:
>
> karaf@root()> feature:repo-add camel 2.17.0
> Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.17.0/xml/features
> karaf@root()> feature:repo-add activemq 5.13.2
> Adding feature url mvn:org.apache.activemq/activemq-karaf/5.13.2/xml/features
> karaf@root()> feature:install activemq-broker-noweb
> karaf@root()> activemq:list
> brokerName = amq-broker
>
> karaf@root()> feature:install activemq-camel
> karaf@root()> activemq:list
> karaf@root()>
>
> The activemq-osgi bundle is refreshed and and cannot be resolved anymore
>
> There is following entry in log
>
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.xbean.spring.context.v2.XBeanNamespaceHandler not found by 
> org.apache.activemq.activemq-osgi [61]
> at 
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)[org.apache.felix.framework-5.4.0.jar:]
> at 
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.4.0.jar:]
> at 
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)[org.apache.felix.framework-5.4.0.jar:]
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_80]
> at 
> org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1925)[org.apache.felix.framework-5.4.0.jar:]
>