Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vertx-web quickstart do not work #1461

Closed
davsclaus opened this issue Nov 8, 2016 · 3 comments
Closed

vertx-web quickstart do not work #1461

davsclaus opened this issue Nov 8, 2016 · 3 comments

Comments

@davsclaus
Copy link
Member

Running with fabric8:run fails with

[INFO] F8:[SVC] vertx-simplest: http://192.168.64.19:32479
[INFO] F8: Scaling Deployment default/vertx-simplest to replicas: 1
[INFO] F8: Watching pods with selector LabelSelector(matchExpressions=[], matchLabels={project=vertx-simplest, provider=fabric8, group=io.fabric8.quickstarts}, additionalProperties={}) waiting for a running pod...
[INFO] F8:[NEW] vertx-simplest-190993933-cowo8 status: Running
[INFO] F8:[NEW] Tailing log of pod: vertx-simplest-190993933-cowo8
[INFO] F8:[NEW] Press Ctrl-C to scale down the app and stop tailing the log
[INFO] F8:[NEW]
[INFO] F8: exec java -javaagent:/opt/agent-bond/agent-bond.jar=jolokia{{host=0.0.0.0}},jmx_exporter{{9779:/opt/agent-bond/jmx_exporter_config.yml}} -cp .:/deployments/* io.vertx.example.HelloWorldEmbedded
[INFO] F8: I> No access restrictor found, access to any MBean is allowed
[INFO] F8: Jolokia: Agent started with URL http://172.17.0.10:8778/jolokia/
[INFO] F8: 2016-11-08 12:32:14.818:INFO:ifasjipjsoejs.Server:jetty-8.y.z-SNAPSHOT
[INFO] F8: 2016-11-08 12:32:15.070:INFO:ifasjipjsoejs.AbstractConnector:Started [email protected]:9779
[INFO] F8: Error: Could not find or load main class io.vertx.example.HelloWorldEmbedded
@davsclaus
Copy link
Member Author

Old working example that uses our own java main
https://github.com/fabric8-quickstarts/vertx-simple

And this new improved that uses a vertx vehicle now dont work
https://github.com/fabric8-quickstarts/vertx-web

@davsclaus
Copy link
Member Author

I got it working now with a hack to add needed manifest entries. As the fmp dont run the fat-jar but the plain JARs still.

We would need a shade enricher in fmp to detect the shade plugin and use its fatjar instead

@rhuss
Copy link
Contributor

rhuss commented Nov 8, 2016

@davsclaus I'm on a dedicated vertx enricher which detects from the maven-shader-plugin's configuration whether its a vertx app + some extra goodies --> fabric8io/fabric8-maven-plugin#146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants