aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes 【help】lookup Error 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 "【help】lookup Error" Watch "【help】lookup Error" New topic
Author

【help】lookup Error

pinheng wang
Greenhorn

Joined: May 24, 2002
Posts: 5
in SessionBean:
public void setSessionContext(SessionContext sessionContext) {
this.sessionContext = sessionContext;
try {
javax.naming.Context context1 = new javax.naming.InitialContext();
if(logging)System.out.println("start to lookup entitybean jndi 2");
countrylistHome = (MmshowCountrylistHome) context1.lookup("java:comp/env/ejb/MmshowCountrylist");
if(logging)System.out.println("sessionbean jndi successful");
}
catch (Exception ex) {
if(logging)System.out.println(ex.toString());
}
}
Error message:
javax.naming.NameNotFoundException: Unable to resolve comp/env/ejb/MmshowCountrylist Resolved: 'comp/env' Unresolved:'ejb' ; remaing name 'MmshowCountrylist'
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 【help】lookup Error