This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Session Bean Error : syntax error on token "HelloHome", ";" expected.
 
It's not a secret anymore!