It's more difficult. The problem is probably caused by export of the javax.jms
package by one of the WMQ jars:
karaf@root>exports | grep javax.jms
javax.jms
| 0.0.0 | 237 |
com.ibm.mq.osgi.allclientprereqs
javax.jms
| 1.1.0 | 235 |
com.ibm.msg.client.osgi.jms.prereq
javax.jms
| 1.1.0 | 148 |
org.apache.geronimo.specs.geronimo-jms_1.1_spec
Refresh of the org.apache.geronimo.specs.geronimo-jms_1.1_spec (148) helped in
my case, but after ServiceMix restart the problem returns. The same problem
happens in ServiceMix 5.4.x. Probably enforcing the start of the bundle 235
before 148 would help.
I think you should consider to create a feature installing all your WMQ
dependencies. Do you use any private instance of Maven repository
(Nexus/Artifactory)? You could install all the dependencies there and create a
feature file referencing the jars from the Maven Repository. Feature can
refernce jars also from other
locations (e.g. using the file or http protocol). You could make the WMQ
libraries available somewhere and reference them in the feature file.
As another solution you could copy the jars into the system subdirectory, e.g.
under com/ibm/mq/... and configure the start level of the bundles in
startup.properties (placed in etc subdirectory). I don't have too much time
until next week to play with this but you can try.
Regards
Krzysztof
On 16.07.2015 11:07, catshout wrote:
> Thanks Krzysztof,
>
> I've tried this out and it worked for me.
>
>
>> On 15.07.2015 23:35, Krzysztof Sobkowiak wrote:
>>
>>> sorry, my mistake
>>>
>>>
>>> exports | grep com.ibm.mq
>>> imports | grep com.ibm.mq
>>>
>>>
>>>
>>> On 15.07.2015 23:29, catshout wrote:
> Mine too, I should have been realizing the typo ..
>
> Furthermore I've tried to leverage WebSphere MQ Client 8.0.0.3 (the latest
> one). Seems that IBM has changed something in there. But now I'm getting
> another error after deploying wmqbridge.xml ..
>
>
>
> Do you have any idea about that?
>
> Best
> - Gerald
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/WMQ-JMS-Provider-OSGi-classes-cause-an-error-since-SM-6-0-0-tp5722815p5722822.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Krzysztof Sobkowiak (@ksobkowiak)
JEE & OSS Architect, Integration Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>