java.lang.Error: factory already defined > at java.net.URL.setURLStreamHandlerFactory(URL.java:1077) > at > org.apache.felix.framework.URLHandlers.<init>(URLHandlers.java:178) > at > org.apache.felix.framework.URLHandlers.registerFrameworkInstance(URLHandlers.java:559) > at > org.apache.felix.framework.URLHandlersActivator.start(URLHandlersActivator.java:71) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645) > at > org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4475) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645) > at org.apache.felix.framework.Felix.init(Felix.java:767) > at org.apache.felix.framework.Felix.start(Felix.java:816)

felix-users | Karl Pauls | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re: Class loading issues for embedded felix within tomcat

    felix-users | 4 years ago | Karl Pauls
    java.lang.Error: factory already defined > at java.net.URL.setURLStreamHandlerFactory(URL.java:1077) > at > org.apache.felix.framework.URLHandlers.<init>(URLHandlers.java:178) > at > org.apache.felix.framework.URLHandlers.registerFrameworkInstance(URLHandlers.java:559) > at > org.apache.felix.framework.URLHandlersActivator.start(URLHandlersActivator.java:71) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645) > at > org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4475) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645) > at org.apache.felix.framework.Felix.init(Felix.java:767) > at org.apache.felix.framework.Felix.start(Felix.java:816)

    Root Cause Analysis

    1. java.lang.Error

      factory already defined > at java.net.URL.setURLStreamHandlerFactory(URL.java:1077) > at > org.apache.felix.framework.URLHandlers.<init>(URLHandlers.java:178) > at > org.apache.felix.framework.URLHandlers.registerFrameworkInstance(URLHandlers.java:559) > at > org.apache.felix.framework.URLHandlersActivator.start(URLHandlersActivator.java:71) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645) > at > org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4475) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645) > at org.apache.felix.framework.Felix.init(Felix.java:767) > at org.apache.felix.framework.Felix.start(Felix.java:816)

      at java.util.concurrent.FutureTask.run()
    2. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      1 frame