3 Replies Latest reply: May 27, 2010 4:48 AM by 843804 RSS

    ClassNotFoundException: BulkBeanException (Just on Windows)

    843804
      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(ReflectHelper.java:189)
           at org.hibernate.tuple.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:142)
           at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:66)
           at org.hibernate.mapping.Component.getType(Component.java:162)
           at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:207)
           at org.hibernate.mapping.Property.isValid(Property.java:174)
           at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:308)
           at org.hibernate.mapping.RootClass.validate(RootClass.java:186)
           at org.hibernate.cfg.Configuration.validate(Configuration.java:814)
           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1037)
           at util.SessionHandler.<clinit>(SessionHandler.java:9)
           at main.RegisterMain.main(RegisterMain.java:31)
      Caused by: java.lang.ClassNotFoundException: net.sf.cglib.beans.BulkBeanException
           at java.net.URLClassLoader$1.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(Unknown 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