I've got a web application that uses Hibernate 3.6.0. I started to see an Exception when I undeployed my app after upgrading from GlassFish 3.0.1 to GlassFish 3.1. I've posted this question on the GlassFish forum, but I've got no replies after a month so I thought I'd see if anyone here has run into this. The exception is:
Quote:
INFO: closing
WARNING: Exception while dispatching an event
org.hibernate.HibernateException: could not destruct listeners
at org.hibernate.event.EventListeners.destroyListeners(EventListeners.java:226)
at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:970)
at org.hibernate.ejb.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:127)
at org.glassfish.persistence.jpa.JPADeployer.closeEMFs(JPADeployer.java:404)
at org.glassfish.persistence.jpa.JPADeployer.event(JPADeployer.java:395)
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:619)
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [org.hibernate.event.EventListeners$2], because it has not yet been started, or was already stopped
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
at org.hibernate.event.EventListeners.destroyListeners(EventListeners.java:215)
... 11 more
The topic on the GlassFish forum:
http://www.java.net/forum/topic/glassfish/glassfish/undeploy-exception-upgrading-glassfish-301-31