Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

JNDI NamingException problems

Posted on 2007-04-03
3
Medium Priority
?
2,989 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This video teaches viewers about errors in exception handling.
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

610 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