GithubHelp home page GithubHelp logo

redhat-helloworld-msa / aloha Goto Github PK

View Code? Open in Web Editor NEW
12.0 6.0 65.0 786 KB

Microservice using Vert.x

License: Apache License 2.0

Java 0.52% HTML 0.26% CSS 5.13% JavaScript 94.07% Dockerfile 0.01%

aloha's Introduction

aloha

Aloha microservice using Vert.X

The detailed instructions to run Red Hat Helloworld MSA demo, can be found at the following repository: https://github.com/redhat-helloworld-msa/helloworld-msa

Build and Deploy aloha locally

  1. Open a command prompt and navigate to the root directory of this microservice.

  2. Type this command to build and execute the service:

    mvn clean compile exec:java
    
  3. The application will be running at the following URL: http://localhost:8080/api/aloha

aloha's People

Contributors

burrsutter avatar cescoffier avatar fbricon avatar jpkrohling avatar marcelomrwin avatar metmajer avatar noelo avatar objectiser avatar pavolloffay avatar rafabene avatar yanaga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aloha's Issues

Unable to reach service end point

Following these instructions:

$ oc new-app --name aloha vertx-s2i~https://github.com/redhat-helloworld-msa/aloha -l hystrix.enabled=true
$ oc delete service aloha; oc expose dc aloha --port=8080
$ oc expose service aloha
$ oc logs -f bc/aloha

I get the aloha service, deployed, but when trying to get a response from http://aloha-helloworld-msa.rhel-cdk.10.1.2.2.xip.io/api/aloha, I just keep getting

<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>

The build completed successfully and there is nothing special in the logs:

Service running at 0.0.0.0:8080
[BonjourService#bonjour] ---> GET http://bonjour:8080/api/bonjour HTTP/1.1
[BonjourService#bonjour] <--- HTTP/1.1 200 OK (169ms)
[BonjourService#bonjour] ---> GET http://bonjour:8080/api/bonjour HTTP/1.1
[BonjourService#bonjour] <--- HTTP/1.1 200 OK (14ms)
[BonjourService#bonjour] ---> GET http://bonjour:8080/api/bonjour HTTP/1.1
[BonjourService#bonjour] <--- HTTP/1.1 200 OK (13ms)
[BonjourService#bonjour] ---> GET http://bonjour:8080/api/bonjour HTTP/1.1
[BonjourService#bonjour] <--- HTTP/1.1 200 OK (97ms)
[BonjourService#bonjour] ---> GET http://bonjour:8080/api/bonjour HTTP/1.1
[BonjourService#bonjour] <--- HTTP/1.1 200 OK (14ms)

compile error

[ERROR] Failed to execute goal io.thorntail:thorntail-maven-plugin:2.2.0.Final:package (default) on project hola: Execution default of goal io.thorntail:thorntail-maven-plugin:2.2.0.Final:package failed: An API incompatibility was encountered while executing io.thorntail:thorntail-maven-plugin:2.2.0.Final:package: java.lang.AbstractMethodError: null

No docker plugin defined

The README says to build and deploy like so:

mvn clean package docker:build fabric8:json fabric8:apply

However, the pom.xml does not define the docker plugin. Hence then trying to use the above command I get:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.691 s
[INFO] Finished at: 2016-04-22T21:35:15+02:00
[INFO] Final Memory: 10M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'docker' in the current project and in the     plugin groups [org.jboss.maven.plugins, org.apache.maven.plugins, org.codehaus.    mojo] available from the repositories [local (/Users/hardy/tmp/m2), jboss-public-    repository-group (https://repository.jboss.org/nexus/content/groups/public/),     central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read     the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/    NoPluginFoundForPrefixException    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.