Hi James,
as ActiveMQConnectionFactory implements ConnectionFactory this exception
typically means that there are two bundles that export the javax.jms
package.
Check what package:exports says and make sure there is only one bundle
exporting the package.
Btw. in karaf 3 there will be a bundle:diag command that among other
problems shows such duplicate exports.
Christian
Am 03.04.2012 23:11, schrieb James Gartner:
Folks,
we have a load balancer bundle that works with JMS, and this works fine when
installed into Eclipse Virgo.
I am trying to get this to run under Karaf with felix and equinox. I am
starting with equinox since it runs with that in Virgo. After adding the
features:install transacation (required by the bundle), I am seeing issues
with it when starting,
[org.osgi.service.cm.ManagedService, id=202, bundle=64]: Unexpected problem
updating Configuration PID=com.test.load_balancer, factoryPID=null,
bundleLocation=file:C:\Temp\osgi-load-balancer-1.0.0-SNAPSHOT.jar
java.lang.ClassCastException: org.apache.qpid.client.AMQConnectionFactory
cannot be cast to javax.jms.ConnectionFactory
I'm not really sure how to go about debugging why this is the case and was
hoping for some ideas, but also a general way to go about debugging these
sorts of issues in the container (how to see exactly what jms bundle is
providing for my bundle, ALL of the possible jms bundles in the container
that are present, etc.?)
I don't have the source for this particular bundle (working on getting that)
-- just the jar and config details to go by.
--
View this message in context:
http://karaf.922171.n3.nabble.com/JMS-messaging-issue-tp3882408p3882408.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com