2011年8月21日 星期日

How to handle SCA the error Business Interface in not compatible on OSGi

當我打包整個 Tuscany Runtime 成 OSGi bundle 並且安裝到 glassfish 上面時

其他 OSGi bundle 使用 Tuscany Runtime bundle 時偶而會發出

Business interface is XXX not compatible

這是 bundle 在 MANIFEST.MF 中 Import-Package 不完全所至

所以最快的解決辦法 就是把 Tuscany Runtime Bundle 所 Export-Package 全部變成
該 SCA-OSGi bundle 的 Import-Package 就可以解決這個問題

沒有留言: