Hi while running testcase i am getting following exception
og4j:ERROR javax.naming.NotContextException
javax.naming.NotContextException
at org.osjava.sj.jndi.AbstractContext.destroySubcontext(AbstractContext.java:529)
at org.osjava.sj.jndi.AbstractContext.close(AbstractContext.java:697)
at javax.naming.InitialContext.close(InitialContext.java:531)
at com.j2fe.logging.EjbLogger.get(EjbLogger.java:64)
at com.j2fe.logging.EjbLogger.<init>(EjbLogger.java:26)
at com.j2fe.logging.EjbLoggerFactory.create(EjbLoggerFactory.java:21)
at com.j2fe.logging.ComponentLoggerFactory.makeNewLoggerInstance(ComponentLoggerFactory.java:14)
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:270)
at org.apache.log4j.LogManager.getLogger(LogManager.java:209)
at org.apache.log4j.Logger.getLogger(Logger.java:155)
at com.j2fe.ejb.BaseEJB.ejbCreate(BaseEJB.java:32)
at com.j2fe.workflow.ejb.FlowControllerBean.ejbCreate(FlowControllerBean.java:233)
at com.j2fe.workflow.ejb.TestStartFlowStoreVendorData.testStartFlow(TestStartFlowStoreVendorData.java:329)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
2012-09-13 11:09:27,116 [main] DEBUG - com.j2fe.test.transaction.MockTransactionManagerFactory - No JTA UserTransaction found at default JNDI location [
java:comp/UserTransaction]
how to resolve it???
Thanks in advance...