Why ClassCastException on JMS ConnectionFactory lookup in JNDI?
- by Derek Mahar
What might be the cause of the following ClassCastException in a standalone JMS client application when it attempts to retrieve a connection factory from the JNDI provider?
Exception in thread "main" java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.ConnectionFactory
Here is an abbreviated version of the JMS client…