Link to home
Start Free TrialLog in
Avatar of micro_learner
micro_learner

asked on

JNDI NamingException problems

I am suing RSA 7 Websphere and I have defined the JNDI in the "WebSphere Bindings" of the DD using RSA 7.But when I run my test cases I get the below error.
Is there any other place where I should check if I have the correct JNDI Name (may be on the server (local WAS 6.1 server) ).

I am sure I am making some configuration mistake but I am not sure where to look at .Can you please tell me where I should be looking it for


javax.naming.NamingException: The JNDI operation "lookupExt"on the context "MNNNN76070Node01Cell/nodes/MNNNN76070Node01/servers/server1" with the name "INITIALDATA" failed.  Please get the root cause Throwable contained in this NamingException for more information. [Root exception is java.lang.NoSuchMethodError: com/ibm/ejs/ras/TraceComponent.isAnyTracingEnabled()Z]
      at com.ibm.ws.naming.util.Helpers.logJndiContextException(Helpers.java:1330)
      at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1566)
      at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1354)
      at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:172)
      at javax.naming.InitialContext.lookup(InitialContext.java:363)
      at com.MNNNN.nnnnn.****.components.ejb.InitialDataBeanTest.setUp(InitialDataBeanTest.java:49)
      at junit.framework.TestCase.runBare(TestCase.java:125)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)

Avatar of micro_learner
micro_learner

ASKER

I am able to access it through the Universal Test Client but when I use a JUnit test case with the right JNDI Lookup it just fails.Also, I checked on the server too and it is the same JNDI Name
I am getting an exception at the looup

Object objHome = ctx.lookup("NITIALDATA");
ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial