camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cameron Braid (JIRA)" <>
Subject [jira] Commented: (CAMEL-775) camel osgi DynamicImport-Package
Date Sun, 12 Apr 2009 11:31:33 GMT


Cameron Braid commented on CAMEL-775:

I've hit a similar issue - using camel 2.0 snapshot

I added static import of org.apache.camel to my manifest and it didn't fix it.

Adding "DynamicImport-Package: org.apache.camel.*" fixes it.

[SpringOsgiExtenderThread-2] DEBUG org.apache.camel.impl.DefaultPackageScanClassResolver -
Loading from osgi buindle using classloader: BundleDelegatingClassLoader for [cut (cut)]
[SpringOsgiExtenderThread-2] DEBUG org.apache.camel.impl.DefaultPackageScanClassResolver -
Could not find class 'org/apache/camel/component/file/GenericFileProducer.class' in classloader:
BundleDelegatingClassLoader for [cut (cut)]. Reason: java.lang.ClassNotFoundException: org.apache.camel.component.file.GenericFileProducer
not found from bundle [cut]
java.lang.ClassNotFoundException: org.apache.camel.component.file.GenericFileProducer not
found from bundle [cut]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(

If this is a different issue, I am happy to open a new ticket.

> camel osgi DynamicImport-Package
> --------------------------------
>                 Key: CAMEL-775
>                 URL:
>             Project: Apache Camel
>          Issue Type: Sub-task
>          Components: camel-core, camel-osgi
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>             Fix For: 1.6.0, 2.0-M1
> See parent issue.
> Thanks Claus. I hope this can help getting it resolved. Let me know if it is, even a
snapshot will do very well for us.
> Another question, is below "DynamicImport-Package workaround" supposed to be bug? Or
it's just the way Camel needs to be configured on OSGi? If so it should be mentioned somewhere
in the docs... not everybody knows that DynamicImport-Package even exists.. (even some OSGi
> First of all, to even get this to "work" requires my own bundle to have this manifest:
> DynamicImport-Package: org.apache.camel.*
> Failing to do so will result in more classloading errors.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message