Git Product home page Git Product logo

spmia-chapter6's People

Contributors

carnellj avatar

Stargazers

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

Watchers

 avatar

spmia-chapter6's Issues

chapter 6 build error

On running mvn clean package docker:build I get:

`Step 4/8 : RUN cd /tmp/ && curl -k -LO "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" -H 'Cookie: oraclelicense=accept-securebackup-cookie' && unzip jce_policy-8.zip && rm jce_policy-8.zip && yes |cp -v /tmp/UnlimitedJCEPolicyJDK8/*.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/

---> Running in b6a34b930c4e
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --
:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:
-- --:--:-- 0

100 317 100 317 0 0 377 0 --:--:-- --:
100 317 100 317 0 0 376 0 --:--:-- --:--:-- --:--:-- 0

0 0 0 0 0 0 0 0 --
:--:-- --:--:-- --:--:-- 0

100 5307 100 5307 0 0 4259 0 0:00:
01 0:00:01 --:--:-- 4259

Archive: jce_policy-8.zip
unzip: short read

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for thoughtmechanix-parent-pom 0.0.1-SNAPSHOT:
[INFO]
[INFO] Config Server ...................................... FAILURE [ 9.760 s]
[INFO] Eagle Eye Licensing Service ........................ SKIPPED
[INFO] Eagle Eye Organization Service ..................... SKIPPED
[INFO] New Version of Eagle Eye Organization Service ...... SKIPPED
[INFO] Eureka Server ...................................... SKIPPED
[INFO] Eagle Eye Special Routes Service ................... SKIPPED
[INFO] Zuul Proxy Server .................................. SKIPPED
[INFO] thoughtmechanix-parent-pom ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.433 s
[INFO] Finished at: 2019-03-21T05:18:25+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project configurationserver: Exception caught: The command '/bin/sh -c cd /tmp/ && curl -k -LO "http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip" -H 'Cookie: oraclelicense=accept-securebackup-cookie' && unzip jce_policy-8.zip && rm jce_policy-8.zip && yes |cp -v /tmp/UnlimitedJCEPolicyJDK8/*.jar /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/' returned a non-zero code: 1 -> [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/MojoExecutionException`

I tried these steps locally and it worked. Maybe this path is wrong: /usr/lib/jvm/java-1.8-openjdk/jre/lib/security/

serviceUrl incorrect in .yml files

In client yaml files you have:

eureka:
  client:
  serviceUrl:
    defaultZone: http://localhost:8761

I believe it should be...

eureka:
  client:
    serviceUrl:
      defaultZone: http://localhost:8761

You get away with it in your examples since the default zone is http://localhost:8761
I had issues when I tried to use a different port. What worked for me was...

Eureka server yaml should have:

server:
  port: 8761
eureka:
  client:
    registerWithEureka: false
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://localhost:${server.port}/eureka/

...where as client yaml should have...

eureka:
  client:
    serviceUrl:
      defaultZone: http://localhost:8761/eureka/

I've really enjoyed the book by the way. It's an excellent read. Cheers

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.