Hi Michael

It's because of bnd: it can detect the import based on byte code. The
problem is that wildcard matches only for clearly defined import and
sometime failed to find the package (especially with split package).
Using a fully qualified package actually import the package.

Regards
JB


On Sun, Apr 7, 2024 at 10:15 PM Michael Elbaz <michaelel...@outlook.fr> wrote:
>
> Ok I finally found that maven-bundle-plugin when using Import-Package * just 
> ignore this class don't understand why maybe because is related to excpetion 
> handling so i finally do
>
> <Import-Package>org.apache.camel.http.base, *</Import-Package>
>
> Wich it not ideal but work
>
> Le 07/04/2024 à 19:04, Michael Elbaz a écrit :
>
> Hello since many year i encounter this error: Caused by: 
> org.apache.camel.RuntimeCamelException: java.lang.ClassNotFoundException: 
> org.apache.camel.http.base.HttpOperationFailedException when using karaf + 
> camel (also see that 
> https://stackoverflow.com/questions/62170631/how-to-solve-java-lang-classnotfoundexceptionorg-apache-camel-http-common-httpo)
>  maybe i miss something ?
> I'm just trying to do this
>
> import org.apache.camel.http.base.HttpOperationFailedException;
>
> onException(HttpOperationFailedException.class)
>        ...
>         .handled(true);
>
> But when i run my http route i see this exception happen and when i do some 
> seach using classes |grep 
> org.apache.camel.http.base.HttpOperationFailedException
>
> i see that class with exported true, so what the point ?
>
> Regards,
> Michael.
>
>

Reply via email to