Hey guys,
Does anybody know what the following error might be caused by?

09:20:16,140 ERROR BasicLazyInitializer:130 - CGLIB Enhancement failed:
org.git.systems.data.PcCalc
java.lang.NoClassDefFoundError: Could not initialize class
net.sf.cglib.proxy.Enhancer

I've made sure that cglib is correctly added, and its .jar is indeed there
when I check. This error has to do with Hibernate not being able to access
this resource, thus it cannot execute sessionFactory =
cfg.buildSessionFactory(); and communicate with the database.

I can't think of anything as far as Maven goes that could be going wrong,
since compiling and packaging works fine, I only get messages after the
login panel of my application (that is, I try to log in and when it connects
to the database to check my info, I get these errors).

All errors whine about the same CGLIB Enhancement failing, so I'm guessing
that every single class that requires Hibernate is throwing these
exceptions.

Any clues as to why this may be happening? Has anyone else ever had any
issues with cglib?

Thanks!

Reply via email to