Hi Mikel,This happened to me when 2 different cglib versions where added to the build. Look for a library adding the cglib as a transitive dependency, and exclude the oldest one.
Good luck! Mikel Cármenes Cavia escreveu:
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!
-- Fabio Braga de Oliveira Gerente de Projetos de Software Work: +55 19 3295-2111 Mobile: +55 19 9270-6574 E-mail: [EMAIL PROTECTED] Símula Sistemas de Planejamento e Comércio Ltda. Url: http://www.simula.com.br Address: Av. José Bonifácio, 2510 Zipcode 13093-240 Campinas - SP - Brazil
begin:vcard fn:Fabio Oliveira n:Oliveira;Fabio org;quoted-printable:S=C3=ADmula Sistemas de Planejamento e Com=C3=A9rcio Ltda. adr;quoted-printable:;;Av. Jos=C3=A9 Bonif=C3=A1cio, 2510;Campinas;SP;13093-240;Brazil email;internet:[EMAIL PROTECTED] title:Gerente de Projetos de Software tel;work:+55 19 3295-2111 tel;cell:+55 19 9270-6574 x-mozilla-html:FALSE url:http://www.simula.com.br version:2.1 end:vcard
smime.p7s
Description: S/MIME Cryptographic Signature
