You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Börcsök József (Jira)" <ji...@apache.org> on 2022/07/16 10:20:00 UTC

[jira] [Created] (CAMEL-18274) camel-resume-api: ClassNotFoundException because of Private-Package

Börcsök József created CAMEL-18274:
--------------------------------------

             Summary: camel-resume-api: ClassNotFoundException because of Private-Package
                 Key: CAMEL-18274
                 URL: https://issues.apache.org/jira/browse/CAMEL-18274
             Project: Camel
          Issue Type: Bug
          Components: camel-resume-api
    Affects Versions: 3.18.0
            Reporter: Börcsök József


Using camel-file component(3.18.0) in OSGi environment (Apache Karaf) throws ClassNotFoundException:
{noformat}
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)


{noformat}
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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)