Hello,
I'm trying to deploy a J2EE application on a Linux Server and i get this error on the connection to my mysql database using Hibernate 3.
The stacktrace is the following :
javax.servlet.ServletException: net.sf.cglib.core.DebuggingClassWriter$1 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:294) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
cause mère
java.lang.NoClassDefFoundError: net.sf.cglib.core.DebuggingClassWriter$1 java.lang.Class.initializeClass(libgcj.so.81) net.sf.cglib.core.DebuggingClassWriter.toByteArray(DebuggingClassWriter.java:73) net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:26) net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69) java.lang.Class.initializeClass(libgcj.so.81) org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117) org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43) org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162) org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135) org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56) org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:302) org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434) org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109) org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226) org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) fr.planning.outils.HibernateUtil.<clinit>(HibernateUtil.java:21) java.lang.Class.initializeClass(libgcj.so.81) fr.planning.actions.login.LogonEvent.execute(LogonEvent.java:39) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) java.lang.reflect.Method.invoke(libgcj.so.81) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244) java.security.AccessController.doPrivileged(libgcj.so.81) javax.security.auth.Subject.doAsPrivileged(libgcj.so.81) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
cause mère
java.lang.ClassNotFoundException: org.objectweb.asm.util.TraceClassVisitor org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208) java.lang.Class.forName(libgcj.so.81) java.lang.Class.initializeClass(libgcj.so.81) net.sf.cglib.core.DebuggingClassWriter.toByteArray(DebuggingClassWriter.java:73) net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:26) net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69) java.lang.Class.initializeClass(libgcj.so.81) org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117) org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43) org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162) org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135) org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56) org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:302) org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434) org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109) org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226) org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300) fr.planning.outils.HibernateUtil.<clinit>(HibernateUtil.java:21) java.lang.Class.initializeClass(libgcj.so.81) fr.planning.actions.login.LogonEvent.execute(LogonEvent.java:39) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) java.lang.reflect.Method.invoke(libgcj.so.81) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244) java.security.AccessController.doPrivileged(libgcj.so.81) javax.security.auth.Subject.doAsPrivileged(libgcj.so.81) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
If anyone could help me, i would really appreciate it.
|