Skip to content

Kubernetes membership scheme bundle is not compatible with Java 8 runtimes #25

@sadilchamishka

Description

@sadilchamishka

Description:
The Kubernetes membership scheme bundle is compatible for Java 9 or higher runtimes. The maven bundle plugin has generated that configuration and has to change it to make compatible for Java 8 or higher runtimes.

Steps to reproduce:

1 - Install Java 8 and select any carbon product (WSO2-IS)

2 - Download kubernetes-membership-scheme-1.0.8.jar and dnsjava-2.1.8.jar

https://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/kubernetes/artifacts/kubernetes-membership-scheme/1.0.8/kubernetes-membership-scheme-1.0.8.jar

https://repo1.maven.org/maven2/dnsjava/dnsjava/2.1.8/dnsjava-2.1.8.jar

3 - Put the kubernetes-membership-scheme-1.0.8.jar inside ./repository/components/dropins. Put the dnsjava-2.1.8.jar inside the ./repository/components/lib folder.

4 - Start the carbon product with OSGI console enabled. Check the status of kubernetes-membership-scheme bundle.

The kubernetes-membership-scheme-1.0.8 bundle would not be resolved and show the following error.

Screenshot 2022-05-20 at 15 14 49

The reasoning for the issue is the maven bundle plugin impose restriction to allow Java 9 or more runtimes as shown below as per the MANIFEST.MF of that bundle.

Screenshot 2022-05-20 at 14 57 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions