java.lang.IllegalStateException: Unable to locate unique FrameworkFactory. Found 2 factories. Do you have multiple OSGi implementations on your classpath?

SpringSource Issue Tracker | Sam Brannen | 7 years ago
  1. 0

    Download build slices-1.0.0.CI-B27 and perform the following: - cd projects/com.springsource.osgi.slices.test/ - ant clean test You'll get the following build error: {code} test.do: [mkdir] Created dir: /opt/springsource/slices-1.0.0.CI-B27/projects/com.springsource.osgi.slices.test/target/test-classes [s:javac] Compiling 8 source files to /opt/springsource/slices-1.0.0.CI-B27/projects/com.springsource.osgi.slices.test/target/test-classes [copy] Copying 16 files to /opt/springsource/slices-1.0.0.CI-B27/projects/com.springsource.osgi.slices.test/target/test-classes [junit] Testsuite: com.springsource.osgi.slices.test.BasicDeployLifecycleTests [junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 2.01 sec [junit] [junit] Testcase: com.springsource.osgi.slices.test.BasicDeployLifecycleTests: Caused an ERROR [junit] Unable to locate unique FrameworkFactory. Found 2 factories. Do you have multiple OSGi implementations on your classpath? [junit] java.lang.IllegalStateException: Unable to locate unique FrameworkFactory. Found 2 factories. Do you have multiple OSGi implementations on your classpath? [junit] at com.springsource.osgi.launcher.FrameworkFactoryLocator.uniqueServiceFromLoader(FrameworkFactoryLocator.java:53) [junit] at com.springsource.osgi.launcher.FrameworkFactoryLocator.createFrameworkFactory(FrameworkFactoryLocator.java:44) [junit] at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:153) [junit] at com.springsource.osgi.test.framework.OsgiTestRunner.launchOsgi(OsgiTestRunner.java:93) [junit] at com.springsource.osgi.test.framework.OsgiTestRunner.run(OsgiTestRunner.java:50) {code}

    SpringSource Issue Tracker | 7 years ago | Sam Brannen
    java.lang.IllegalStateException: Unable to locate unique FrameworkFactory. Found 2 factories. Do you have multiple OSGi implementations on your classpath?
  2. 0

    Download build slices-1.0.0.CI-B27 and perform the following: - cd projects/com.springsource.osgi.slices.test/ - ant clean test You'll get the following build error: {code} test.do: [mkdir] Created dir: /opt/springsource/slices-1.0.0.CI-B27/projects/com.springsource.osgi.slices.test/target/test-classes [s:javac] Compiling 8 source files to /opt/springsource/slices-1.0.0.CI-B27/projects/com.springsource.osgi.slices.test/target/test-classes [copy] Copying 16 files to /opt/springsource/slices-1.0.0.CI-B27/projects/com.springsource.osgi.slices.test/target/test-classes [junit] Testsuite: com.springsource.osgi.slices.test.BasicDeployLifecycleTests [junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 2.01 sec [junit] [junit] Testcase: com.springsource.osgi.slices.test.BasicDeployLifecycleTests: Caused an ERROR [junit] Unable to locate unique FrameworkFactory. Found 2 factories. Do you have multiple OSGi implementations on your classpath? [junit] java.lang.IllegalStateException: Unable to locate unique FrameworkFactory. Found 2 factories. Do you have multiple OSGi implementations on your classpath? [junit] at com.springsource.osgi.launcher.FrameworkFactoryLocator.uniqueServiceFromLoader(FrameworkFactoryLocator.java:53) [junit] at com.springsource.osgi.launcher.FrameworkFactoryLocator.createFrameworkFactory(FrameworkFactoryLocator.java:44) [junit] at com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:153) [junit] at com.springsource.osgi.test.framework.OsgiTestRunner.launchOsgi(OsgiTestRunner.java:93) [junit] at com.springsource.osgi.test.framework.OsgiTestRunner.run(OsgiTestRunner.java:50) {code}

    SpringSource Issue Tracker | 7 years ago | Sam Brannen
    java.lang.IllegalStateException: Unable to locate unique FrameworkFactory. Found 2 factories. Do you have multiple OSGi implementations on your classpath?
  3. 0

    Vague error message thrown with appc on ear file.

    Oracle Community | 1 decade ago | 666705
    java.lang.IllegalStateException: unable to locate config file bf.properties on the classpath
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Vague error message thrown with appc on ear file.

    Oracle Community | 1 decade ago | 666705
    java.lang.IllegalStateException: unable to locate config file bf.properties on the classpath
  6. 0

    Error 500--Internal Server Error -java.lang.IllegalStateException:

    Oracle Community | 7 years ago | 843844
    java.lang.IllegalStateException: Multiple jsfComponents.jar on classpath causes multiple initialization and might cause unwanted side effects - therefore this is not allowed. Please make sure to have jsfComponents.jar only once on the class path. Multiple jsfComponents.jar found: [zip:C:/Apps/......../../..../war/WEB-INF/lib/jsfComponents_lib_jsfLib_3pl.jar]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Unable to locate unique FrameworkFactory. Found 2 factories. Do you have multiple OSGi implementations on your classpath?

      at com.springsource.osgi.launcher.FrameworkFactoryLocator.uniqueServiceFromLoader()
    2. com.springsource.osgi
      OsgiTestRunner.run
      1. com.springsource.osgi.launcher.FrameworkFactoryLocator.uniqueServiceFromLoader(FrameworkFactoryLocator.java:53)
      2. com.springsource.osgi.launcher.FrameworkFactoryLocator.createFrameworkFactory(FrameworkFactoryLocator.java:44)
      3. com.springsource.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:153)
      4. com.springsource.osgi.test.framework.OsgiTestRunner.launchOsgi(OsgiTestRunner.java:93)
      5. com.springsource.osgi.test.framework.OsgiTestRunner.run(OsgiTestRunner.java:50)
      5 frames