?
Solved

JNDI NamingException problems

Posted on 2007-04-03
3
Medium Priority
?
2,953 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month9 days, 2 hours left to enroll

764 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