I'm trying to use Payara micro server to host my Java EE application.
Payara micro server is started with following command:
java -jar payara-micro-4.1.1.161.1.jar --deploy app.war
payara-micro-4.1.1.161.1.jar was downloaded from download page. app.war is my Java EE application.
That command starts Payara micro server, and deploys my war file to the server certainly. In the deploying process, however, Payara micro server responds to the http request before the deployment of war file is finished!
- At first, I execute the command
java -jar payara-micro-4.1.1.161.1.jar --deploy app.war
. - Then, I run HTTP request to “http://localhost:8080/app/”. (In this time, deployment of app.war is not finished.)
- Actually, Payara micro server returns 404 error page before deployment of app.war is finished.
In that case, I expect to receive the response from app.war after deployment of app.war is finished. Is there any way to make Payara micro wait to respond to the HTTP request for finishing war file deployment?