BTW I'm using Jboss3.0RC01 version
I have a similar problem. When I try to get a reference to a local interface from outside the jboss, I get a java.lang.ClassCastException:javax.naming.Reference instead of javax.naming.NamingException.
Did you get any clue on this?
I have the same problem, too. Does any one know how to solve the problem?