my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes Session Bean Error : syntax error on token Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Session Bean Error : syntax error on token "HelloHome", ";" expected. " Watch "Session Bean Error : syntax error on token "HelloHome", ";" expected. " New topic
Author

Session Bean Error : syntax error on token "HelloHome", ";" expected.

Sajet Inarup
Greenhorn

Joined: Mar 20, 2003
Posts: 23
I have created stateless session bean
when I try to create instance on client side I'm getting this error.
syntax error on token "HelloHome", ";" expected. Hopw to solve this?
//my syntax as follws
Context ctx = new InitialContext();
Object obj = ctx.lookup("java:comp/env/ejb/HelloHome")
//error I'm getting on line is
HelloHome rh = (HelloHome)PortableRemoteObject.narrow(obj,HelloHome.class);
Please help,
Thanks,


SCWCD<br />IBM WAS4.0(158)<br />SCJP2
Sajet Inarup
Greenhorn

Joined: Mar 20, 2003
Posts: 23
Solved ,
Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Bean Error : syntax error on token "HelloHome", ";" expected.