Search code examples
mavenintellij-ideaosgi

Error while running tests on IntelliJ for OSGi bundle


I'm using IntelliJ IDEA Ultimate version 2018.1.1 for Linux

While trying to run test on a maven project consisting of OSGi bundles from Intellij , I am constantly getting below mentioned errors

Error:osgi: [org.wso2.carbon.identity.oauth] In component <name not yet determined>, method framework.authentication.context.method.name.translator,  cannot recognize the signature of the descriptor: ()V
Error:osgi: [org.wso2.carbon.identity.oauth] In component class org.wso2.carbon.identity.oauth2.internal.OAuth2ServiceComponent, reference framework.authentication.context.method.name.translator is dynamic but has no unbind method.
Error:osgi: [org.wso2.carbon.identity.oauth] No interface specified on framework.authentication.context.method.name.translator

Has anyone faced this issue before?


Solution

  • I was able to find a similar issue here.

    This issue got resolved by removing the OSGi facets in the project and the tests were successful.

    To remove OSGi facets, go to Project Structure -> Project Settings -> Facets; select and remove OSGi facets.