Ballerina-lang: Error when using ballerinax/kubernetes

Created on 6 Aug 2019  路  2Comments  路  Source: ballerina-platform/ballerina-lang

Description:

Trying to run the given code snippet after installing Ballerina 1.0.0 Alpha by the installer, it gives an error saying error: invoking main method failed due to java.lang.NoClassDefFoundError: ballerinax/kubernetes/___init

Steps to reproduce:

import ballerina/io;
import ballerinax/kubernetes;

public function main() {
    io:println("Hello, World!");
}

Affected Versions:
Ballerina 1.0.0 Alpha

ArePackerina PrioritBlocker TeaDevTools TypBug

All 2 comments

This issue exists in the all extensions and we will be fixing this in next immediate release.
As a work around, you need to replace the .jar file manually.

These are steps

  1. Download docker-extension-balo-1.0.0-alpha.zip file from nexus [1] and unzip it.
  2. Copy docker-artifacts/docker.jar and paste at /bre/lib

You need to do the same steps for k8 as well.

[1] http://maven.wso2.org/nexus/content/repositories/releases/org/ballerinax/docker/docker-extension-balo/1.0.0-alpha/docker-extension-balo-1.0.0-alpha.zip

Was this page helpful?
0 / 5 - 0 ratings