Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18274

OSGi - camel-file: ClassNotFoundException because of Private-Package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.0
    • 3.18.1, 3.19.0
    • camel-file
    • None
    • Unknown

    Description

      Using camel-file component(3.18.0) in OSGi environment (Apache Karaf) throws ClassNotFoundException:

      Caused by: java.lang.ClassNotFoundException: org.apache.camel.resume.ResumeAware not found by org.apache.camel.camel-file [46]
      
              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1591)
      
              at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
      
              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1976)
      
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
      
      
      

      The reason may be org.apache.camel.resume package is in Private-Package section of MANIFEST.MF in camel-file bundle (JAR file contains single configuration file: adapter.properties in this package) so exported package of camel-api bundle is hidden. I found that it has been changed since 3.17.x.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              borcsokj Börcsök József
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: