When a war is being deployed in embedded gf and no virtualservers field is used
in DeployParams, the deploy will fail without providing SEVERE or WARNING.
The following line is printed:
This is printed by com.sun.enterprise.web.WebContainer.loadWebModule (around
line 1498) since wmInfo.getVirtualServers() is empty.
From the output, you get the impression that deployment succeeded:
Oct 18, 2009 5:08:16 PM com.sun.enterprise.web.WebApplication start
INFO: Loading application HelloEmbedded at /HelloEmbedded
EmbeddedDeployer.deploy() returns a String, as can be expected on successful
Solution: provide virtualservers in DeployParams.
I think it might be better that if no virtualservers are specified, the default
one should be used. Or at least an error should be printed, not giving the user
the impression that deployment succeeded.
Related to #10301, but no NPE is thrown in this case.