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 |greporg.apache.camel.http.base.HttpOperationFailedException

i see that class with exported true, so what the point ?

Regards,
Michael.

Reply via email to