We have couple of web modules deployed in Jboss 4.2 server. One of them is axis.war. After invoking shutdown.sh to start shutting down process, the logs show EJBs getting undeployed, however Tomcat keeps on processing AxisServlet requests and shutdown never completes because it seems the server gets stuck/busy processing web requests. Also all of these web requests throw NameNotFound exceptions because the EJBs that are called form these requests are already destroyed so the log is filled with NameNotFound exceptions.
I am very new to JBoss deployment/undeployment process. I just can't seem to figure out why web container doesn't destroy AxisServlet as soon as shutdown is invoked. How can I fix this issue? What are my options besides manually undeploying axis.war or stopping from jmx?
[2016-12-01 17:09:05,351] [JBoss Shutdown Hook] [INFO] [server.Server]  JBoss SHUTDOWN: Undeploying all packages
[2016-12-01 17:09:06,007] [JBoss Shutdown Hook] [INFO] [ejb3.EJBContainer]  STOPPED EJB: com.test.ejb.impl.TestBean ejbName: TestBean
[2016-12-01 17:09:09,710] [http-10.96.117.33-8080-7] [INFO] [STDOUT]  - in sendTest(), error generating content for id 22746851; format=text/html
javax.naming.NameNotFoundException: remote not bound
Take a thread dump of the JVM (jstack command is one way, but there are many other ways you can read about) running this server and see what the threads are doing when this happens.