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 build inside container #48

Open
weidi opened this issue Dec 2, 2020 · 1 comment
Open

Unable to build inside container #48

weidi opened this issue Dec 2, 2020 · 1 comment

Comments

@weidi
Copy link

weidi commented Dec 2, 2020

Hi,
i tried building your project inside a container to have a final slim master and worker container.
mvn clean package fails when executing test

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [akka.actor.ActorSystem]: Factory method 'createActorSystemWithMaster' threw exception; nested exception is java.lang.ClassNotFoundException: javafx.util.Pair at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)

do you have any advise?

@anirudhwarrier1
Copy link

This happens because javafx is not part of openjdk based docker image.

It also happens that javafx is not actually used in this project but merely referenced.
By commenting out https://github.com/Abiy/distGatling/blob/master/gatling-rest/src/main/resources/application.conf#L77 the test will no longer fail and the application will start inside a docker container.

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