An Application fails deployment due to weld validation failure. In WeldDeployer.event the code that handles org.glassfish.internal.deployment.Deployment.APPLICATION_STARTED calls bootstrap.shutdown. Then the application is undeployed which causes the event org.glassfish.internal.deployment.Deployment.APPLICATION_DISABLED to be fired. In WeldDeployer.event the code that handles this event calls bootstrap.shutdown again causing a java.lang.IllegalStateException to be thrown (and ignored). Something needs to be set in TransientAppMetaData indicating that the weld bootstrap has already been shutdown.