[jboss-user] [Beginners Corner] - Re: java.lang.ClassCastException: org.jboss.util.id.GUID can

jaikiran do-not-reply at jboss.com
Wed Dec 19 02:07:54 EST 2007


"bpet36" wrote : 
  | 
  | obj = PortableRemoteObject.narrow(ctx.lookup("ejb/UserAdmin/UserBean" , Class.forName(className));
  |  

Change this code to:

obj = ctx.lookup("ejb/UserAdmin/UserBean");
  | UserBeanHome home = (UserBeanHome) PortableRemoteObject.narrow(obj,UserBeanHome.class);
  | 

Also, do you package JBoss related jar files in your application? If yes, then remove those from your application.

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

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



More information about the jboss-user mailing list