You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/07/25 07:16:00 UTC

[jira] [Updated] (CAMEL-18274) OSGi - camel-file: ClassNotFoundException because of Private-Package

     [ https://issues.apache.org/jira/browse/CAMEL-18274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-18274:
--------------------------------
    Component/s: camel-file
                     (was: camel-resume-api)

> OSGi - camel-file: ClassNotFoundException because of Private-Package
> --------------------------------------------------------------------
>
>                 Key: CAMEL-18274
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18274
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-file
>    Affects Versions: 3.18.0
>            Reporter: Börcsök József
>            Priority: Major
>             Fix For: 3.18.1, 3.19.0
>
>
> 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)