This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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.
 
Similar Threads
Error in using JWIG
Simple Session bean in weblogic8.1
syntax error on token "+", ++expected
Ternary operator cannot get it to work
JDBC Connection Class