| Author |
getting exception
|
Naresh Chaurasia
Ranch Hand
Joined: May 18, 2005
Posts: 309
|
|
Hi, when i am trying to run the first program for hf ejb i am getting the followig error: e=javax.naming.NoInitialContextException: Need to specify class name in environm ent or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial javax.naming.NoInitialContextException: Need to specify class name in environmen t or system property, or as an applet parameter, or in an application resource f ile: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 40) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243 ) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav a:280) at javax.naming.InitialContext.lookup(InitialContext.java:347) at callingEJB.main(callingEJB.java:24) ---------------------------------------------------------- any help will be appreciated. thnx
|
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
|
 |
Jesus Angeles
Ranch Hand
Joined: Feb 26, 2005
Posts: 2036
|
|
|
hi, can you post the jndi lookup code
|
 |
Valentin Crettaz
Gold Digger
Sheriff
Joined: Aug 26, 2001
Posts: 7610
|
|
The following post explains how to get rid of this problem: http://www.coderanch.com/t/160390/java-EJB-SCBCD/certification/Chap-AdviceBean-HF-EJB
|
SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
|
 |
Naresh Chaurasia
Ranch Hand
Joined: May 18, 2005
Posts: 309
|
|
|
thnx Valentin,it works.
|
 |
 |
|
|
subject: getting exception
|
|
|