Answer the question
In order to leave comments, you need to log in
Creating a Docker container?
Hello everyone, I'm a system administrator, there was a task to dockerize an application (the application is written in java), I did not expect that there would be problems with this.
The essence of the problem:
Now the java application is running under tomcat, I expected that if I take a war file and run java -jar <*.war> everything will take off without pain, but an error occurs that I don’t understand
Error: Could not find or load main class
Can you explain where to dig?
Answer the question
In order to leave comments, you need to log in
Doesn't it bother you that the key is called jar, and the file extension is war? war files must be run by the web container.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question