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

Unable to run the project #8

Open
lduparc opened this issue Oct 21, 2015 · 4 comments
Open

Unable to run the project #8

lduparc opened this issue Oct 21, 2015 · 4 comments

Comments

@lduparc
Copy link

lduparc commented Oct 21, 2015

Hi,

I'm trying to run the project with SpringBoot 1.3.0.BUILD-SNAPSHOT and docker.
However, I encounter an issue with docker images 'anilallewar/xxxx' .

➜  spring-boot-microservices git:(master) ✗ docker run -d --name config-server -p 8888:8888 anilallewar/config-server
Unable to find image 'anilallewar/config-server:latest' locally
Pulling repository docker.io/anilallewar/config-server
Error: image anilallewar/config-server:latest not found
➜  spring-boot-microservices git:(master) ✗

When I want to build all subprojects with the command line :

./build-all-projects.sh
Erreur : impossible de trouver ou charger la classe principale org.gradle.wrapper.GradleWrapperMain
Erreur : impossible de trouver ou charger la classe principale org.gradle.wrapper.GradleWrapperMain

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/xxxx/Projects/API/spring-boot-microservices/config-server/build.gradle' line: 43

* What went wrong:
A problem occurred evaluating root project 'config-server'.
> No such property: mainClassName for class: org.gradle.api.internal.project.DefaultProject_Decorated

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

No such property: mainClassName for class: org.gradle.api.internal.project.DefaultProject_Decorated

Can you give me the keys in order to run the project with docker ?

Thanks

@lduparc lduparc changed the title Docker image not found Unable to run the project Oct 21, 2015
@azarudeen90
Copy link

Before runing the build-all scripts. Add a line to create the wrapper jars to be added in your system.

gradle wrapper

@Dior222
Copy link

Dior222 commented Jul 8, 2016

Hi, I'm running your project, and I had the following problem.

错误: 找不到或无法加载主类 org.gradle.wrapper.GradleWrapperMain

I'm on Mac OS , and I've already installed gradle

@annbigbig
Copy link

Hi Dior222
I encountered the same problem with you ,
I have also installed gradle on my Linux machine,
then I changed the build-all-projects.sh ,
insert 'gradle wrapper' command before each './gradlew clean build'
like this

#!/bin/sh

cd api-gateway; gradle wrapper; ./gradlew clean build; cd ..
cd auth-server; gradle wrapper; ./gradlew clean build; cd ..
cd config-server; gradle wrapper; ./gradlew clean build; cd ..
cd task-webservice; gradle wrapper; ./gradlew clean build; cd ..
cd user-webservice; gradle wrapper; ./gradlew clean build; cd ..
cd web-portal; gradle wrapper; ./gradlew clean build; cd ..
cd webservice-registry; gradle wrapper; ./gradlew clean build; cd ..
cd comments-webservice; gradle wrapper; ./gradlew clean build; cd ..

then try to execute build-all-projects.sh again
it's working for me, although I don't understand the tech detail.

@tianyi2013
Copy link

The problem is that most of the projects' gradle/wrapper folder does not contain a gradle-wrapper jar. Copy that across and it builds fine.

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

5 participants