NoClassDefFoundError « JBoss « JPA Q&A





1. Hibernate, Jboss TreeCache (local mode)-NoClassDefFoundError    forum.hibernate.org

Hi, Iam trying to use treecahce (Jboss Cache) as a second-level cache and cache mode as local. I included all the jboss jar files that comes with hibernate3.1 Iam getting the following exception when i try to execute a standalone java class. (not in an app server). Following is the exception: Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/jboss/mx/util/Serialization java.lang.ExceptionInInitializerError at com.util.HibernateUtil.init(HibernateUtil.java:38) at com.util.HibernateUtil.getSessionFactory(HibernateUtil.java:44) ...