Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4455

Bundle 'org.apache.servicemix.bundles.opensaml' imports org.apache.commons.httpclient.protocol version="[4,5)", however at runtime it doesn't seem to be able to resolve to any version for httpclient.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2
    • Karaf
    • None
    • % %
    • 6.3 Sprint 4 (Mar 28 - Apr 29), Sprint 5 - towards ER2

      Bundle 'org.apache.servicemix.bundles.opensaml' imports org.apache.commons.httpclient.protocol version="[4,5)", however at runtime it doesn't seem to be able to resolve to any version for httpclient. As a result, the following error is thrown:

      Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.protocol.ProtocolSocketFactory not found by org.apache.servicemix.bundles.opensaml [268]
      	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)[org.apache.felix.framework-4.4.1.jar:]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_60]
      

      the workaround could be to run the below command to identify the opensaml bundle:

      JBossFuse:karaf@root> la -l | grep org.apache.servicemix.bundles.opensaml
      [ 268] [Active     ] [            ] [       ] [   25] mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.6.5_1
      

      and then run dynamicImport on this bundle id:

      JBossFuse:karaf@root> dynamic-import 268
      

      this will pass the above issue, to verify and see bundle 268 resolved to what version of httpclient run below command on this bundle version:

      JBossFuse:karaf@root> imports 268 | grep -i httpclient
      Apache ServiceMix :: Bundles :: commons-httpclient (236): org.apache.commons.httpclient.protocol; version=3.1.0
      

      this has been resolved to version=3.1.0 for org.apache.commons.httpclient.protocol.

            gertv_jira Gert Vanthienen (Inactive)
            rhn-support-hfuruich Hisao Furuichi
            Josef Ludvicek Josef Ludvicek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: