srini srini - 1 year ago 180
Java Question

WebSphere MQ Configuration issues

getting below error after i configure MQ connection factory.

java.lang.ClassCastException: incompatible with

my code snippet where the exception is pointing to :

String queueConnectionJndi = props.getProperty(queueConnection + MQ_CONN);
queueConnectionFactory = MQQueueConnectionFactory)initialContext.lookup(queueConnectionJndi);

I am not able to find out the root cause of this.

can any body please help me on this, Thanks in advance.

Answer Source

the MQ jars which WAS is using and my application using are different so this problem occured. when i corrected the classpath it is resolved. sorry for the trouble, thanks for the help.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download