[jboss-user] [Messaging, JMS & JBossMQ] - Re: Class Cast Exception -- By HelloDr

adrian@jboss.org do-not-reply at jboss.com
Fri May 16 13:15:51 EDT 2008


This is a basic java question.


  | System.out.println(TopicConnectionFactory.class.getClassLoader());
  | Class[] interfaces = SpyConnectionFactory.class.getInterfaces();
  | for (int i = 0; i < interfaces.length; ++i)
  | {
  |    Class intf = interfaces
  |    System.out.println(intf.getName() + " " + intf.getClassLoader();
  | }
  | 

Printing the code source will tell you where it is loading the duplicate classes from.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151511#4151511

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151511



More information about the jboss-user mailing list