objectdb-2.3.7_18
When I undeploy a Glassfish3.1.1 web application when using @PersistenceContext EntityManager injection, using the undeploy feature under the Glassfish server node of Netbeans7.1, I get the following otherwise harmless error:
java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [java.util.NoSuchElementException], because it has not yet been started, or was already stopped at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1411) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1369) at com.objectdb.o.ERR.f(ERR.java:62) at com.objectdb.o.OST.onObjectDBError(OST.java:581) at com.objectdb.o.OMF.close(OMF.java:904) at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:405) at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:396) at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:120) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680)
This was when using ObjectDB in embedded mode.
What is the correct procedure for undeploying such a web application that prevents this error.