1 Reply Latest reply on Jul 8, 2009 5:36 AM by waquin

    cannot deploy seam 2.2.0CR1 jpa example

    tonyukuk

      I am using glassfish 2.1 and seam 2.2.0CR1 on Windows XP. When I try to deploy I got the error below;



      java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.ejb.Ejb3Configuration
           at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:130)
           at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:149)
           at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:84)
           at com.sun.enterprise.web.WebModuleListener.loadPersistenceUnits(WebModuleListener.java:190)
           at com.sun.enterprise.web.WebModuleListener.lifecycleEvent(WebModuleListener.java:168)
           at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:143)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:5094)
           at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:957)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:688)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1584)
           at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1222)
           at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
           ... 62 more


      I check my classpath everything looks ok, I check the libraries under glassfish my database driver and needed hibernate libraries are included. It seems like I am missing a library but I couldn't figure out which one. Do you have any idea?
      Is using hibernate .jar files which came with seam 2.2.0CR1 sufficient or do I have to download new jars from hibernate website?