Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.RuntimeException: Name com not found in context "java:".  RSS feed

 
Prakas Subed
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rancher, I am using WSAD 5.1 have developed a Business Delegate code that attempts instantiate a session bean. When trying to do this, I get following error during runtime:


[12/9/04 21:37:03:375 EST] 78f32dd SystemErr R java.lang.RuntimeException: Name com not found in context "java:".
[12/9/04 21:37:03:391 EST] 78f32dd SystemErr R at com.jdpts.common.Locator.getJndiRef(Locator.java:85)
[12/9/04 21:37:03:391 EST] 78f32dd SystemErr R at [12/9/04 21:37:03:422 EST] 78f32dd SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)

Any pointer on how might I solve this error?

JNDI name used:

"java:com/jdpts/session/LoginSessionHome"

and portion of the BD:

<pre>

protected RegisterBD() {
try {
LoginSessionHome home =
(LoginSessionHome) Locator.instance().getEjbHomeRef(
ConstantsJNDI.LOGIN_MNG, LoginSessionHome.class);

loginSession = home.create();

} catch (Exception e) {
e.printStackTrace();
//throw new RuntimeException(e.getMessage());
}


}

</pre>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!