Dear, Thanks for your reply, Lviz. I have followed the link http://www.jboss.org/wiki/Wiki.jsp?page=HotDeployClassCastExceptions , now I can ensure that in my two servers, I have exactly only one copy of those classes that beanA and beanB share (the messages used to communicate, the Home and Remote interface of beanB). But the problem still be there.
I want to tell that I restarted jboss serverB, not redeploy anything, no new class was uploaded. I simply restart serverB, and I want serverA could automatically reconnect to it again, without have to restart server A I think the problem here might not because of classloading (I am not sure, I'm not fully understand the narrow mechanics). After this line of code Object ref = ctx.lookup(beanBJndiName);/code] the ref object is null (I have shown in my code), so when I narrow it (from null of a class to an object of beanB's Home interface, the ClassCastException is thrown. | | Please help me. | Thanks in advance! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859871#3859871 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859871 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
