classpath « Jar « JPA Q&A





1. Hibernate jars required in appserver classpath ? Why ?    forum.hibernate.org

I have deployed a CMT bean in Weblogic 8.1 and packaged the hibernate libraries in the ear. But to my surprise, I found that when weblogic starts it complains with NoClassDef Error for hibernate classes like HibernateException . Then I placed the jars in weblogic classpath and it worked fine. Why ear classloader can't load the hibernate jars i dont undestand ...

2. What Jars do I need to include in my classpath    forum.hibernate.org

Full stack trace of any exception that occurs: 08:13:08,806 INFO Version:15 - Hibernate Annotations 3.2.1.GA 08:13:08,821 INFO Environment:514 - Hibernate 3.2.6 08:13:08,821 INFO Environment:547 - hibernate.properties not found 08:13:08,821 INFO Environment:681 - Bytecode provider name : cglib 08:13:08,837 INFO Environment:598 - using JDK 1.4 java.sql.Timestamp handling 08:13:08,931 INFO Version:286 - Hibernate EntityManager 3.4.0.GA Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.addProperties(Ljava/util/Properties;)Lorg/hibernate/cfg/AnnotationConfiguration; at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:756) ...