The problem is in this line of code in JMSHandler.java -

==
topicConnectionFactory = (TopicConnectionFactory) jndiContext.lookup(topicConnectionFactoryName);
==

The "jndiContext.lookup()" is returning a " javax.naming.Reference" - which is not getting cast to "javax.jms.TopicConnectionFactory"

Same thing with Queue connection factory - not able to cast javax.naming.Reference to "javax.jms.QueueConnectionFactory"

Thanks
Sharathbabu
Unable to figure out what is missing.