Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-9909

Tests failing to retrieve Naming interface for provider due to failure in lookup of InitialContext using org.jboss.naming.HttpNamingContextFactory in EWP Testsuite

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Copy http*-invoker.sar to server profile.

      Show
      Copy http*-invoker.sar to server profile.
    • Affects Testing:
      Regression
    • Release Notes Docs Status:
      Not Required
    • Docs QE Status:
      NEW

      Description

      There are many tests in EWP testsuite failing with similar stacktrace due to failure in lookup of InitialContext using org.jboss.naming.HttpNamingContextFactory.

      I have tried to run these tests against node0=localhost ,node0=$MYTESTIP_1(valid ip address ) as well as without passing node0 and they are failing consistently.

      I found https://issues.jboss.org/browse/JBAS-6072 and i am wondering if this is related...Are these tests not commented in EWP and they are expected to fail?

      Hudson job:

      https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EWP5/view/TestSuite/job/ewp-5.2-rhel6-OracleJDk6/2/

      Failing tests:
      org.jboss.test.cluster.multicfg.test.HAJndiTestCase(all testcases in both tcp and udp mode)

      org.jboss.test.naming.test.SecurityUnitTestCase
      org.jboss.test.naming.test.SimpleUnitTestCase
      org.jboss.test.security.test.LoginModulesUnitTestCase
      org.jboss.test.security.test.XMLLoginModulesUnitTestCase

      StackTrace:

      Error Message

      Failed to retrieve Naming interface for provider http://localhost:8080/invoker/JNDIFactory

      Stacktrace

      javax.naming.NamingException: Failed to retrieve Naming interface for provider http://localhost:8080/invoker/JNDIFactory [Root exception is java.io.FileNotFoundException: http://localhost:8080/invoker/JNDIFactory]
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:96)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)
      at org.jboss.test.NamingUtil.getFullInitialContext(NamingUtil.java:125)
      at org.jboss.test.NamingUtil.getFullInitialContext(NamingUtil.java:141)
      at org.jboss.test.NamingUtil.getFullInitialContextFromUrl(NamingUtil.java:165)
      at org.jboss.test.cluster.multicfg.test.HAJndiTestCase.testLocalBinding(HAJndiTestCase.java:91)
      at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
      at junit.extensions.TestSetup.run(TestSetup.java:25)
      Caused by: java.io.FileNotFoundException: http://localhost:8080/invoker/JNDIFactory
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
      at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:209)
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:92)
      Caused by: java.io.FileNotFoundException: http://localhost:8080/invoker/JNDIFactory
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2300)
      at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579)
      at java.net.URLConnection.getContentLength(URLConnection.java:474)
      at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:204)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  wolfc Carlo de Wolf
                  Reporter:
                  madhumita12 Madhumita Sadhukhan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: