Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5259

XKMS client does not start in Eclipse RCP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.7, 3.0.0-milestone1
    • XKMS
    • None
    • Unknown

    Description

      When starting xkms-client in Eclipse RCP there is an exception that the javax.xml.BindingProvider interface is not visible.

      The error is a bit misleading. The BundleDelegatingClassloader sees the interface but loads it from a different classloader than the interface supplied to ProxyHelper by the JAXWS frontend.

      The interface supplied by JAXWS comes from:
      org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@11b289f[org.apache.servicemix.specs.jaxws-api-2.2:2.2.0(id=72)]
      This looks correct.

      The interface from the BundleDelegatingClassloader has the Classloader null. The javadoc explains that this means it comes from the bootstrap classloader.

      The error may be related to my recent change to ProxyHelper. A workaround is to add the javax.xml package to the imports of xkms-client.

      Strangely the error only happens in Eclipse RCP buit not in karaf and not in pure equinox based on an extended DOSGi distro.

      Attachments

        Activity

          People

            cschneider Christian Schneider
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: