Hi,
I have developed a little applicattion with Struts 1.2.4 + Hibernate 2.1.7c and works well with Tomcat 5, but with Sun App Server 8.1 2005Q1, doesn`t work. it reads well the initilization file, but when it goes to run the first query, I obtain an error ClassNotFoundException in a class of cglib.jar, but doesn't say which class. The error is the next:
Caused by: java.lang.NoClassDefFoundError
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:167)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:215)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:237)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:796)
at utils.HibernateUtil.<clinit>(HibernateUtil.java:25)
... 42 more
Has somebody work with hibernate + Sun App Server? Has had anybody the same problem?
Best Regards
Rodolfo
|