Liberty: Custom User Registry with unresolved dependencies

227 Views Asked by At

Am a noob in OSGI development. Due to requirements, I had created a osgi bundle project, for a custom user registry feature in Eclipse with WDT and subsequently a feature project to export a .esa file for it.

I'm then able to install the feature into our websphere liberty, however when start it hit the error below:

Unresolved Requirement Require-Bundle: com.ibm.websphere.v85.core

The bundle require the plugin in order to build for the custom user registry. Once I have added the required plugin com.ibm.websphere.v85.core i can build successfully.adding plugin

I have tried to include the bundle together when i export the feature, but the same error persist.

Any advice on how to solve this dependency issue?

1

There are 1 best solutions below

2
On BEST ANSWER

I'm not sure how your eclipse workspace is setup, but that bundle is a WAS traditional bundle that doesn't exist in Liberty. Instead of adding Require-Bundle you should use Import-Package to import any packages you need. I would also suggest checking the plug-in development environment preferences for eclipse to make sure you have it configured with Liberty as the target platform rather than WAS traditional.