Using my application through jhipster
https://github.com/trustjalaj/DockerDemo and environment of java 8
I created a war file using ./gradlew bootWar command for prod profile and then I executed it in my Linux(Ubuntu) Laptop using below commands
Things I Did
Assume I am in Application Home folder i.e /media/jalaj/OS/DockerDemo
I used
1)build/libs/checking-docker-0.0.1-SNAPSHOT.war and
2)java -jar build/libs/checking-docker-0.0.1-SNAPSHOT.war
I did not see any UI component loaded for the latter but it showed the application has started on localhost:8080
and the former command shows error
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 1: $'PK\003\004': command not found
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 2:5F,Morg/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 3:5F,Morg/springframework/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 4:5F,Morg/springframework/boot/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 5: $'\b5F,M': command not found
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 6:5F,M%org/springframework/boot/loader/data/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 7:5F,M/springframework/boot/loader/jar/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 8: syntax error near unexpected token `$'org/springframework/boot/loader/archive/PK\003\004''
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 8: 5F,M(org/springframework/boot/loader/archive/PK'
3)I have also followed the docs https://www.jhipster.tech/production/
for execution and it said that something like .original.war will also be created in build/libs folder but I can't see the orginal war present in the same directory
I also read other SO answers and I find that it needs to be deployeded on tomcat server as nginx is not a servlet container.
Can any experienced person guide on how to execute the war file.