Dear all,
it looks like there are more classloader hells than just one... I reckon one
root cause was the local MQ install on my laptop where I am doing all these
exercises. I thus unsetted all the MQ_ environment variables in the cmd
window (yess, running on Windows), cleared the CLASSPATH variable, started
servicemix...deployed ibm-mq-series feature (composed according to Björn's
instructions) and.....error. Despite the ibm osgi bundles being deployed
(and "active"), the service assembly deploy now blows up with a
ClassNotFound Error:
Caused by: java.lang.ClassNotFoundException:
com.ibm.mq.jms.MQQueueConnectionFactory in classloader
org.apache.xbean.spring.context.File
SystemXmlApplicationContext@13d2b1c
at
org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:206)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
Could it be there is anything wrong with the build of my SU and my SA? The
OSGi bundles in SM look like this:
[ 198] [Active ] [Created ] [ ] [ 60] Apache ServiceMix ::
Components :: Exec Service Engine (2011.01.0.fuse-00-00)
[ 208] [Active ] [ ] [ ] [ 60] geronimo-jms_1.1_spec
(1.1.1)
[ 210] [Active ] [ ] [ ] [ 55] DirectIP Plug-in
(7.0.1.4)
[ 211] [Active ] [ ] [ ] [ 55] NLS Plug-in (7.0.1.4)
Fragments: 212
[ 212] [Resolved ] [ ] [ ] [ 55] WMQ NLS Plug-in
(7.0.1.4)
Hosts: 211
[ 213] [Active ] [ ] [ ] [ 55] Common Services J2SE
Plug-in (7.0.1.4)
[ 214] [Active ] [ ] [ ] [ 55] JMS client Plug-in
(7.0.1.4)
[ 215] [Active ] [ ] [ ] [ 55] WMQ prereq Plug-in
(7.0.1.4)
[ 216] [Active ] [ ] [ ] [ 55] WMQ provider Plug-in
(7.0.1.4)
[ 217] [Active ] [ ] [ ] [ 60] tutorial-sa (0.0.0)
The class com.ibm.mq.jms.MQQueueConnectionFactory sits in the
com.ibm.mqjms.jar which is embedded in the
com.ibm.msg.client.osgi.wmq_7.0.1.4.jar which has been turned into WMQ
provider Plug in. The packages:exports command shows that package
com.ibm.mq.jms.* is exported by Bundle 216 which is the WMQ provider Plug-in
from above.
Life can be really painful...any ideas what could be the cause?
Kind regards
Michael
--
View this message in context:
http://servicemix.396122.n5.nabble.com/ServiceMix-4-deploy-JCA-rar-tp3400074p3408216.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.