When deploying ear-files the web modules are started before the ejb modules.
Autostart servlets then receive javax.naming.NameNotFoundException.
When undeploying ear-files ear modules are stopped before web modules.
Servlets that want to clear their state on undeploy receive the same exception.
It seems to be more natural to change the order of deployment and undeployment
in org.jboss.deployment.J2eeDeployer (startApplication and stopApplication).
Log in to post a comment.