This discussion is archived
3 Replies Latest reply: May 27, 2010 2:48 AM by 843804 RSS

ClassNotFoundException: BulkBeanException (Just on Windows)

843804 Newbie
Currently Being Moderated
I've made an application using hibernate.
Everything works on my mac. Now I tried to get it working on Windows XP and I get an error.
Edit: also tried on windows 7. Same problem as on Windows XP.
I've looked on the internet and the problem could be caused by CGLIB.
I've tried to run with and without cglib-2.2.jar, but in both cases I get the error.

Does anyone has a suggestion?

I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/cglib/beans/BulkBeanException
     at org.hibernate.util.ReflectHelper.getBulkBean(
     at org.hibernate.tuple.PojoComponentTuplizer.<init>(
     at org.hibernate.tuple.TuplizerLookup.create(
     at org.hibernate.mapping.Component.getType(
     at org.hibernate.mapping.SimpleValue.isValid(
     at org.hibernate.mapping.Property.isValid(
     at org.hibernate.mapping.PersistentClass.validate(
     at org.hibernate.mapping.RootClass.validate(
     at org.hibernate.cfg.Configuration.validate(
     at org.hibernate.cfg.Configuration.buildSessionFactory(
     at util.SessionHandler.<clinit>(
     at main.RegisterMain.main(
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.beans.BulkBeanException
     at$ Source)
     at Method)
     at Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     ... 12 more
Edited by: Aukemid on May 20, 2010 2:15 PM