I have an ear file that I can deploy to Glassfish v2 but when I try and deploy it to V3 I get the following exception:

java.lang.NoClassDefFoundError: org/hibernate/event/EventListeners$2
at org.hibernate.event.EventListeners.destroyListener s(EventListeners.java:215)
at org.hibernate.impl.SessionFactoryImpl.close(Sessio nFactoryImpl.java:850)
at org.hibernate.ejb.EntityManagerFactoryImpl.close(E ntityManagerFactoryImpl.java:46)
at org.glassfish.persistence.jpa.JPADeployer.closeEMF s(JPADeployer.java:417)
at org.glassfish.persistence.jpa.JPADeployer.event(JP ADeployer.java:408)
at org.glassfish.kernel.event.EventsImpl$1.run(Events Impl.java:120)
at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2
at com.sun.enterprise.loader.ASURLClassLoader.findCla ssData(ASURLClassLoader.java:782)
at com.sun.enterprise.loader.ASURLClassLoader.findCla ss(ASURLClassLoader.java:696)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 21)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 66)



The libraries are all included in the ear file.