On Wed, Apr 4, 2012 at 12:16 AM, Christian Schneider <[email protected]> wrote: > 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. >
I suggest to backport such a command to the Karaf 2.x line as well. When people is hit by OSGi issues, they are really in trouble and can have a hard time to figure out what and how to resolve that. So any command that can help them is welcome. And ppl will be on the Karaf 2.x for a long time. As people dont upgrade servers as frequent. > 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 > -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
