Solved

JNDI NamingException problems

Posted on 2007-04-03
3
2,841 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
Comment Utility
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
Comment Utility
I am getting an exception at the looup

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

Accepted Solution

by:
mayankeagle earned 500 total points
Comment Utility
>> 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

771 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