Solved

JNDI NamingException problems

Posted on 2007-04-03
3
2,858 Views
Last Modified: 2013-12-10
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)

0
Comment
Question by:micro_learner
  • 2
3 Comments
 

Author Comment

by:micro_learner
ID: 18847163
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
0
 

Author Comment

by:micro_learner
ID: 18847547
I am getting an exception at the looup

Object objHome = ctx.lookup("NITIALDATA");
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 18861430
>> java.lang.NoSuchMethodError: com/ibm/ejs/ras/TraceComponent.isAnyTracingEnabled()Z]

You have an invalid version of the JAR file, perhaps. And that looks like an IBM class. Do you have 2 versions installed? The correct one is being used by the: >>  Universal Test Client
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java 8 lambda expresssions exception handling 3 75
Spring Framework HTTPSession management 1 23
javap bin 2 28
Oracle SQL syntax check  without executing 6 37
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now