Greetings,
In a simple piece of code Im doing the following:
InitialContext ctx = new InitialContext(); Queue q = (Queue)ctx.lookup ("queue/B");
Exception in thread "main" java.lang.ClassCastException: javax.naming.Reference at ro.happytour.happyledger.jms.client.JMSProviderClient.main(JMSProviderClient.java:13)
I already moved this question to the jndi forum once!!!
JNDI Lookup problems are not JMS questions.
See the FAQ linked at the the top of that forum on how to debug the problem and the most
common problems with JNDI (in this case missing classes from your classpath).