As of Payara version 5.2021.7 I can deploy my application automatically in docker on container start but it errors with Invalid ejb jar [my application]: it contains zero ejb.
However, I can log into the UI and deploy the application manually without any errors.
Upon further inspection, It looks like the command the auto deploy is running is
"deploy /opt/payara/deployments/authn.simple"
with "authn.simple" being my application.
If I change the postboot script to include the war file, so
"deploy /opt/payara/deployments/authn.simple/authn.simple-2.0.0.war"
and reboot the container, it deploys successfully. It looks like the autodeploy isn't including the war file in its path?
Stackoverflow question here
Thanks
Alex