File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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,
 
 
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