[JBoss-user] [EJB/JBoss] - Re: Cannot lookup after restart server

2004-12-27 Thread lvhuyen
Dear Lviz, Sorry for the annoyance I've made. My problem was using wrong class, but I was confused with that "ref is null" output :< Sorry! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859974#3859974 Reply to the post : http://www.jboss.org/index.html?modu

[JBoss-user] [EJB/JBoss] - Re: Cannot lookup after restart server

2004-12-27 Thread lvhuyen
| if (ref == null) | System.out.println("Got ref object"); | else | System.out.println("ref is null"); Sorry all, I have missed coding at this place. So, my home instance is not null after lookup. I think I'm finding out my problem. I'll reply soon. Sorry for tha

[JBoss-user] [EJB/JBoss] - Re: Cannot lookup after restart server

2004-12-27 Thread lvhuyen
Thanks for your help, Lviz. In serverA, I have package myCompany.business contains home, remote interface and bean class of beanA. These .class files and the deployment descriptor files are packed into ejbA.jar file and I put it in the default/deploy folder of jboss serverA. In serverB, I have

[JBoss-user] [EJB/JBoss] - Re: Cannot lookup after restart server

2004-12-24 Thread lvhuyen
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 Re

[JBoss-user] [EJB/JBoss] - Re: Cannot lookup after restart server

2004-12-23 Thread lvhuyen
Please help me resolve this problem. Thank you very much! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859792#3859792 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859792 ---

[JBoss-user] [EJB/JBoss] - Cannot lookup after restart server

2004-12-23 Thread lvhuyen
I have 2 jboss servers: serverA and serverB. On serverA, I have a SLSB beanA. This SLSB has to call some method of SLSB beanB deployed on serverB. I can successfully lookup beanB from beanA, and do my business. But, when I restart serverB, I cannot lookup beanB again from beanA. The code segment