ratpack context unable called from osgi bundle

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

ratpack context unable called from osgi bundle

taufiq tri wahyudi
hello admin,

1. i have run osgi felix on top of ratpack
2. then i create osgi an osgi bundle which need ratpack context as it's parameter
    e.g :
    class A {---->osgi bundle
        public void serviceHandler(Context context) {

since class A is loaded by felix classloader and Context is loaded by ratpack classloader it said :
[ratpack-compute-1-2] ERROR ratpack.error.internal.DefaultDevelopmentErrorHandler - exception thrown for request to /v1.0/notification/sms/verification_code/customer/56ceb306cff47e00014a7592
java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated loading for a different type with name "ratpack/handling/Context"


quote :

i also included ratpack core dependency in my bundle pom and import package instruction

thank you