79657979

Date: 2025-06-08 16:10:56
Score: 2
Natty:
Report link

Have you verified the war (/app/build/libs/sampleWeb-0.0.1-SNAPSHOT.war) file mentioned in the Dockerfile is created in your project target place prior to run the app ?

This could also be one of the possible reason when the project ain't built (mvn build/package) and run the application before build either from terminal or editor, in that case docker searches in the target place for .war/.jar package which obviously isn't there and throws an error.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: inam ullah