2 Replies Latest reply on May 15, 2006 5:11 PM by Sudheer Chekka

    classcast exception while using JMS with Jboss4.0.3 SP1

    Sudheer Chekka Newbie

      I m using JBoss 4.0.3 and i am getting a class cast exception when i try to look up any thing in the context...
      e.g. when i say:
      myQueue = (Queue) ctx.lookup("queue/A")
      i get a class cast exception although org.jboss.mq.SpyQueue implements javax.jms.Queue:

      java.lang.ClassCastException: org.jboss.mq.SpyQueue

      I have included jboss-j2ee.jar in the classpath.

      Any help will be appreciated.