title: MQSeries CSIException: JMSCS0002 but classpath looks ok for commonservices
body: <p>In trying to connect from an MQSeries 7.5 client to a 7.5 local server I'm getting a CSIException: JMSCS0002 which when I look up the error in the IBM codes says:</p>
  
  <p>JMSCS0002 
  The call could not be completed because CommonServices has not been initialized.</p>
  
  <p>CommonServices is an internal component and needs to be initialized at startup but has failed.</p>
  
  <p>Check that the installation and classpath setup is correct.</p>
  
  <p>But both my compile and run classpaths include com.ibm.mq.commonservices.jar, com.ibm.msg.client.commonservices.jar, and com.ibm.msg.client.commonservices.j2se.jar</p>
  
  <p>I'm was using Oracle JDK 1.6. I tried using the WS MQ java but it made no difference.</p>
  
  <p>Any help appreciated. Thanks.</p>
  
  <pre><code> Caused by: com.ibm.msg.client.commonservices.CSIException: JMSCS0002
  at com.ibm.msg.client.commonservices.workqueue.PIWorkQueueManager.enqueueItem(PIWorkQueueManager.java:67)
  at com.ibm.msg.client.commonservices.workqueue.WorkQueueManager.enqueue(WorkQueueManager.java:225)
  at com.ibm.msg.client.commonservices.workqueue.WorkQueueManager.enqueue(WorkQueueManager.java:194)
  at com.ibm.msg.client.wmq.common.internal.WMQThreadPool.enqueue(WMQThreadPool.java:91)
  </code></pre>