title: MQ initial context class in MQ series 9
body: <p>I have JNDI context in MQ queue manager, my standalone java client is able to do lookup, with initial context class, <code>com.ibm.mq.jms.context.WMQInitialContextFactory</code>, it is working with MQ client jars for versions before MQ 8. It also has the <code>mqcontext.jar</code> in my classpath.</p>
  
  <p>With MQ 8 and 9, I am trying to use the relocatable jars <code>com.ibm.mq.allclient.jar</code> and <code>com.ibm.mq.traceControl.jar</code> in my classpath and the JNDI lookup is failing. If I add the old <code>mqcontext.jar</code> to classpath, I get below error.</p>
  
  <pre><code> javax.naming.NamingException: Caught an MQ Exception: com.ibm.msg.client.jms.DetailedMessageFormatException: JMSCC0053: An exception occurred deserializing a message, exception: 'java.io.InvalidClassException: com.ibm.msg.client.wmq.common.WMQConnectionName; local class incompatible: stream classdesc serialVersionUID = 3226780381239434112, local class serialVersionUID = -2174857328193645055'.
  </code></pre>