Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-2618

OSGi not working in tests that enable the module system

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 11.0
    • None
    • None

    Description

      To reproduce:

      -unpack the attachment

      -open it in the IDE

      -open the test:

      osgi-in-tests/test/unit/src/osgi/in/tests/OSGiInTest.java

      -do Run/Test File

      the test will try to enable the module system, but as the osgi.in.tests module depends on the org.apache.commons.logging module, the module system startup fails with:

      WARNING: Warning - could not install some modules:
          osgi-in-tests - The module named org.apache.commons.logging was needed and not found.

      But org.apache.commons.logging is available without any problems, the test is doing:

      LogFactory.getLog("OSGiInTest").info("Mam logger!");

      and that works OK. It is just the module system that does not allow the OSGi bundle to be found/enable.

      Attachments

        1. osgi-in-tests.zip
          6 kB
          Jan Lahoda

        Activity

          People

            jtulach Jaroslav Tulach
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: