ceylon-sdk icon indicating copy to clipboard operation
ceylon-sdk copied to clipboard

Unable to deploy Vert.x verticle with ceylon.test tool

Open LisiLisenok opened this issue 8 years ago • 4 comments

If in IDE choose 'Run as Ceylon Java Application' everything is ok. If choose 'Run as Ceylon Test' error is returned: java.lang.ClassNotFoundException: herd.schedule.chime/0.1.0 from [Module "ceylon.test:1.2.2" from Ceylon ModuleLoader: RootRepositoryManager: FileContentStore: C:\Users\COVISE\.ceylon\cache]

module.ceylon:

native("jvm")
module ttt "1.0.0" {
    shared import io.vertx.ceylon.core "3.2.2";
    shared import ceylon.test "1.2.2";
}

run function:


shared test void run() {
    Vertx v = vertx.vertx();
    v.deployVerticle (
        "ceylon:herd.schedule.chime/0.1.0",
        (String|Throwable message) {
            print(message);
            v.close();
        }
    );
}

PS herd.schedule.chime/0.1.0 is available on Herd

LisiLisenok avatar Mar 16 '16 07:03 LisiLisenok

Shouldn't your ttt module import herd.schedule.chime?

bjansen avatar Mar 16 '16 08:03 bjansen

no, it souldn't - vertx responsible to load it

LisiLisenok avatar Mar 16 '16 08:03 LisiLisenok

just tried to import herd.schedule.chime - the same error

LisiLisenok avatar Mar 16 '16 08:03 LisiLisenok

Well, if vertx is responsible for loading that module, then the issue will be probably there, because the context class loader will be different when running as Ceylon Java Application and Ceylon Test.

WDYT @vietj?

thradec avatar Mar 29 '16 18:03 thradec