JMSCS0002 from Spring JMS and IBM Websphere MQ <p>I've seen a question or two on Stack overflow regarding this error but I'm still unable to solve it, so I thought I would pose my own question.</p> <p>Here's my issue:</p> <p>I'm using Spring and Spring's JMSTemplate to do some messaging and queue work. I'm trying to read from a queue. I'm not 100% positive if my logic is correct in my code, but anytime I try to run my app I am greeted with this exception (I've included only the last section):</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> <p>Now I'm fairly certain this has nothing to do with my code because no matter how much I change my logic, if I try calling any of the methods made available by <code>JMSTemplate</code>, I receive this exception. After doing some research (based on the other stack overflow answers) I assume it has something to do with the way my classpath is setup. Here is a link to those questions:</p> <p><a href="http://stackoverflow.com/questions/18639212/mqseries-csiexception-jmscs0002-but-classpath-looks-ok-for-commonservices">One</a> and <a href="http://stackoverflow.com/questions/36849774/ibm-mq-ffdc-csiexception-jmscs0002-when-i-try-to-run-from-console">Two</a> </p> <p>In addition to this, here's some info I found on IBM's <a href="http://www.ibm.com/support/knowledgecenter/SSFKSJ_7.1.0/com.ibm.mq.doc/jm10330_.htm" rel="nofollow">site</a>:</p> <blockquote> <p>To compile and run WebSphere MQ classes for JMS applications, use the CLASSPATH setting for your platform as shown in Table 1.</p> <p>CLASSPATH=MQ_INSTALLATION_PATH\java\lib\com.ibm.mqjms.jar; MQ_INSTALLATION_PATH\tools\jms;</p> </blockquote> <p>I have tried this however and It still seems to be failing me. Here's what I have added in my .bat file for my application that I run:</p> <p><code>c:\java\jre6\bin\javaw -cp "C:\ussco\wmsflgint\mqs\mqjms-7.5.0.0.jar; C:\ussco\wmsflgint\mqs\mq-7.5.0.0.jar; C:\ussco\wmsflgint\mqs\headers-1.4.2.jar; C:\ussco\wmsflgint\mqs\jmqi-7.5.0.0.jar;" -Xmx256M ....</code> (there's more on the end but I don't feel it's relevant)</p> <p>Am I not adding this correctly? </p> <p>Thanks</p>