Uploaded image for project: 'Spring OSGi'
  1. Spring OSGi
  2. OSGI-621

java.lang.NoClassDefFoundError: org.apache.felix.framework.Felix while running tests on IBM JVM J9

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: TESTING
    • Labels:
      None
    • Environment:

      Description

      Executing Spring DM tests on a IBM JVM using Equinox as platform result in the following exception:

      java.lang.NoClassDefFoundError: org.apache.felix.framework.Felix
      at java.lang.J9VMInternals.verifyImpl(Native Method)
      at java.lang.J9VMInternals.verify(J9VMInternals.java:63)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:124)
      at java.lang.Class.forNameImpl(Native Method)
      at java.lang.Class.forName(Class.java:127)
      at org.springframework.osgi.test.platform.Platforms.class$(Platforms.java:30)
      at org.springframework.osgi.test.platform.Platforms.<clinit>(Platforms.java:41)
      at java.lang.J9VMInternals.initializeImpl(Native Method)
      at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)
      at com.buschmais.osgi.spring.tests.ComponentTests.<clinit>(ComponentTests.java:43)

      The reason seems to be that the class Felix platform class is indirectly referenced by the classes org.springframework.osgi.test.platform.Platforms and org.springframework.osgi.test.AbstractConfigurableOsgiTests and the IBM JVM tries while loading to resolve the whole class graph.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                costin Costin Leau
                Reporter:
                dirk.mahler Dirk Mahler
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: