-
Notifications
You must be signed in to change notification settings - Fork 179
Running webapp container is not able to find the Main class #5
Comments
FMP command run to reproduce, and from |
Had emailed @arun-gupta privately, but will respond with my thoughts here. The Java command seems odd, as I would expect it to be running the |
And then you run the container as |
Now getting:
|
I've executed the last codebase and it worked! I can't reproduce this issue |
I'm also unable to replicate that error with the latest code |
I've added a comment on PR #8, but I'll replicate here. It happened to me before, so let me ask: are you running minikube or minishift and docker for mac at the same time? Sometimes the docker image gets pushed to the wrong registry. This seems to be the old image built with the error. |
I had Kubernetes enabled using Docker for Mac. Also had a kops-based cluster running. Terminated both of them and now the container is being built and run correctly. Here is the build output:
How can I get rid of |
Glad it's working. Not sure on the warnings, I see those as well |
Warnings are not showing up if a k8s cluster is already running. Will close this issue and open another one if this becomes bothersome. |
When a Docker image is generated for
webapp
using FMP, the Docker context has the following directory structure:The packaged WAR file has:
The java command to run the app is:
Running the Docker container
arungupta/webapp
as:gives the following error:
The text was updated successfully, but these errors were encountered: