File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

【help】lookup Error

pinheng wang

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) {
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:
subject: 【help】lookup Error
It's not a secret anymore!