-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hi, I'll be little bit detailed here.
I need to use this module. I put this line into mod.json
"deploys": "io.vertx~lang-scala_2.10~1.1.0-M1,io.vertx~mod-mysql-postgresql_2.10~0.3.1"
I have this in langs.properties:
scala=io.vertx~lang-scala_2.10~1.1.0-M1:org.vertx.scala.platform.impl.ScalaVerticleFactory
What I am doing here is that I am adding this module to deployments hence when I run my fat jar, it will automatically use this plugin.
Then I have my main verticle in which I am deploying this module
container.deployModule("io.vertx~mod-mysql-postgresql_2.10~0.3.1",
new Handler<AsyncResult<String>>() {
@Override
public void handle(AsyncResult<String> event) {
if (event.succeeded()) {
System.out.println("succeeded");
} else {
System.out.println("not succeeded");
System.out.println(event.cause().getMessage());
}
}
});
So it does this: http://pastebin.com/CJ5fjy7X
The bad thing is that this occurs randomly. Once it runs ok, once it fails with that ouptup.
Things I do not understand:
- Why it downloads scala module even I have bundled it into fat jar? I can see that module in mods dir in fat jar but when I start it, it downloads it every time. I have pulled in all dependencies into fat jar hence I do not see any reason why it should download them all over again.
- It downloads it EVERY TIME even I do have it in VERTX_HOME/sys-mods directory as it is system module
- It downloads it EVERY TIME even I do have that scala module in VERTX_MODS directory.
- Why it fails to deploy it and that promise error is there?
I am using Java 1.8
Is there any recomanded way how to use this module in my runnable vert.x module?
Thanks!