ServiceMix
  1. ServiceMix
  2. SM-2282

Installation of the eventadmin feature fails

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.1, 5.1.0, 6.0.0.M1, 6.0.0
    • Component/s: core
    • Labels:
      None

      Description

      Installation of the eventadmin feature ends with the following exception

      Caused by: java.lang.ClassNotFoundException: org.osgi.service.event.EventAdmin not found by org.ops4j.pax.web.pax-web-runtime [139]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
      	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      
      

      Full stacktrace in attachment

      1. stacktrace.txt
        8 kB
        Krzysztof Sobkowiak

        Activity

        Hide
        Krzysztof Sobkowiak added a comment -

        The problem occurs when war feature is installed before eventadmin (KARAF-312). The problem can be reproduced on Karaf by installing war feature before eventadmin.

        In the patch for SM-2238 I have replaced activemq-broker by activemq-broker-noweb and eventadmin (referenced by activemq-broker) is no more part of the boot features.

        Problem can be solved by adding eventadmin to featuresBoot.

        Show
        Krzysztof Sobkowiak added a comment - The problem occurs when war feature is installed before eventadmin ( KARAF-312 ). The problem can be reproduced on Karaf by installing war feature before eventadmin . In the patch for SM-2238 I have replaced activemq-broker by activemq-broker-noweb and eventadmin (referenced by activemq-broker ) is no more part of the boot features. Problem can be solved by adding eventadmin to featuresBoot .
        Show
        Krzysztof Sobkowiak added a comment - Fixed in 6.0.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commit;h=78f9aea3661d180f9afea2fa6124a16f3f12e83d 5.1.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commit;h=e3bd71cc9cf7d26f7eb68010117c50924511be09 5.0.x - https://git-wip-us.apache.org/repos/asf?p=servicemix.git;a=commit;h=eb5eb4828c13aa580885b1e1b88c5fd71ec02edf
        Hide
        metatech added a comment -

        Beware that we encountered problems in ServiceMix 4.x with Felix Event Admin installed and Spring bundles being restarted (see call stack in last comment of SMX4-744). The only solution was to uninstall Felix Event Admin.

        Show
        metatech added a comment - Beware that we encountered problems in ServiceMix 4.x with Felix Event Admin installed and Spring bundles being restarted (see call stack in last comment of SMX4-744 ). The only solution was to uninstall Felix Event Admin.

          People

          • Assignee:
            Krzysztof Sobkowiak
            Reporter:
            Krzysztof Sobkowiak
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development