hi 

can anyone pls tell me why this error is

     [java] .the error in testCreateNodeForNonContractedSkill() method is
java.l
ang.RuntimeException: Error:javax.naming.NoInitialContextException: Need to
spec
ify class name in environment or system property, or as an applet parameter,
or
in an application resource file:  java.naming.factory.initial
     [java]     at
javax.naming.spi.NamingManager.getInitialContext(NamingManage
r.java:643)
     [java]     at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.
java:246)
     [java]     at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialCon
text.java:283)
     [java]     at
javax.naming.InitialContext.lookup(InitialContext.java:350)
     [java]     at com.zeborg.util.Util.getFromJNDI(Util.java:33)
     [java]     at
com.zeborg.labor.ejb.entity.EntityUtil.getSkillHome(EntityUti
l.java:129)
     [java]     at
com.zeborg.labor.unittests.RequestManagerJUnit.testCreateNode
ForNonContractedSkill(RequestManagerJUnit.java:281)
     [java]     at java.lang.reflect.Method.invoke(Native Method)
     [java]     at junit.framework.TestCase.runTest(TestCase.java:166)
     [java]     at junit.framework.TestCase.runBare(TestCase.java:140)
     [java]     at junit.framework.TestResult$1.protect(TestResult.java:106)
     [java]     at
junit.framework.TestResult.runProtected(TestResult.java:124)
     [java]     at junit.framework.TestResult.run(TestResult.java:109)
     [java]     at junit.framework.TestCase.run(TestCase.java:131)
     [java]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
     [java]     at junit.framework.TestSuite.run(TestSuite.java:168)
     [java]     at junit.textui.TestRunner.doRun(TestRunner.java:74)
     [java]     at junit.textui.TestRunner.run(TestRunner.java:200)
     [java]     at
com.zeborg.labor.unittests.RequestManagerJUnit.main(RequestMa
nagerJUnit.java:318)

thanks in advance
mahesh

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to