Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7753

Selenium Docker Jenkins followup ticket - NoInitialContextException: Need to specify class name in environment or system property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.1.0
    • Component/s: None
    • Labels:

      Description

      The Jenkins job of Selenium tests has several distinguished failures. This is one of them.

      For example, EcaQa138_EEPAttributes and EcaQa99_EEPManagement (See from Jenkins log):

      JNDI name lookup error
      javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)
      at javax.naming.InitialContext.lookup(InitialContext.java:417)
      at org.cesecore.jndi.JndiHelper.getRemoteSession(JndiHelper.java:71)
      at org.cesecore.util.EjbRemoteHelper.getRemoteSession(EjbRemoteHelper.java:80)
      at org.cesecore.util.EjbRemoteHelper.getRemoteSession(EjbRemoteHelper.java:54)
      at org.ejbca.webtest.WebTestBase.removeEndEntityProfileByName(WebTestBase.java:280)
      at org.ejbca.webtest.scenario.EcaQa99_EEPManagement.exit(EcaQa99_EEPManagement.java:61)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1182)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1033)

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                samuel Samuel Lidén Borell
                Reporter:
                tarmo_helmes Tarmo Raudsep
                Verified by:
                Jekaterina Bunina
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d