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.NamingExcepti on: The JNDI operation "lookupExt"on the context "MNNNN76070Node01Cell/node s/MNNNN760 70Node01/s ervers/ser ver1" with the name "INITIALDATA" failed. Please get the root cause Throwable contained in this NamingException for more information. [Root exception is java.lang.NoSuchMethodErro r: com/ibm/ejs/ras/TraceCompo nent.isAny TracingEna bled()Z]
at com.ibm.ws.naming.util.Hel pers.logJn diContextE xception(H elpers.jav a:1330)
at com.ibm.ws.naming.jndicos. CNContextI mpl.lookup Ext(CNCont extImpl.ja va:1566)
at com.ibm.ws.naming.jndicos. CNContextI mpl.lookup (CNContext Impl.java: 1354)
at com.ibm.ws.naming.util.Wsn InitCtx.lo okup(WsnIn itCtx.java :172)
at javax.naming.InitialContex t.lookup(I nitialCont ext.java:3 63)
at com.MNNNN.nnnnn.****.compo nents.ejb. InitialDat aBeanTest. setUp(Init ialDataBea nTest.java :49)
at junit.framework.TestCase.r unBare(Tes tCase.java :125)
at junit.framework.TestResult $1.protect (TestResul t.java:106 )
at junit.framework.TestResult .runProtec ted(TestRe sult.java: 124)
at junit.framework.TestResult .run(TestR esult.java :109)
at junit.framework.TestCase.r un(TestCas e.java:118 )
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.NamingExcepti
at com.ibm.ws.naming.util.Hel
at com.ibm.ws.naming.jndicos.
at com.ibm.ws.naming.jndicos.
at com.ibm.ws.naming.util.Wsn
at javax.naming.InitialContex
at com.MNNNN.nnnnn.****.compo
at junit.framework.TestCase.r
at junit.framework.TestResult
at junit.framework.TestResult
at junit.framework.TestResult
at junit.framework.TestCase.r
ASKER
I am getting an exception at the looup
Object objHome = ctx.lookup("NITIALDATA");
Object objHome = ctx.lookup("NITIALDATA");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER